ldconfig will always pick /usr/lib64/libcurl.so.4 because there can be only one file with that name installed at a time.