Renaming and symlinking shared libraries

Alejandro Pulver alepulver at FreeBSD.org
Sat Jul 1 23:50:36 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello.

I have tried to modify the lua4 (to avoids conflicts) port to rename
the shared libraries it installs, like the databases/dbXX ports do, but
without success.

AFAIK the symlinks would be (under lib/, in src->dest form) the
following. This shows the renaming of libtest to libtest-2, with major
version of 2.

libtest-2.so -> libtest-2.so.2
libtest-2.so.2 -> test2/libtest-2.so.2 (real)

Inside test2/.

libtest.so -> libtest-2.so
libtest-2.so -> libtest-2.so.2 (real)

Then I link a program with "cc -o test -L/usr/local/lib/test2 -ltest".
I did it with lua4 but after linking 'ldd' says it can't find
"libtest.so".

Have I missed something?

Thanks and Best Regards,
Ale
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFEpwR3iV05EpRcP2ERAuXWAKC0s/VKUILshYiv9Ua6MA3NaDxcBQCbBncq
UShFmGJatU7SOU7kIsqbV8w=
=cz1T
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list