The ldconfig program updates the linker cache will the location of all the system libraries. It does take awhile to run (your experience is normnal. If this bothers you, I'd suggest you read
this thread for a way to have it run in the background shortly after boot.