Loader Not Using Newer Library Version
Loader Not Using Newer Library Version
- Subject: Loader Not Using Newer Library Version
- From: Michael B Allen <email@hidden>
- Date: Sat, 26 Mar 2005 01:14:53 -0500
I'm compiling my dylib as follows:
gcc -dynamiclib -current_version 0.8.25 \
src/f1.pic.o src/f2.pic.o s -o libfoo.0.8.25.dylib
and installing it in /usr/local/lib like:
-rwxr-xr-x libfoo.0.8.25.dylib
lrwxr-xr-x libfoo.0.8.dylib -> libfoo.0.8.25.dylib
lrwxr-xr-x libfoo.dylib -> libfoo.0.8.25.dylib
-rw-r--r-- libfoo.a
But when I increment the version, programs compiled with an older version
will not load:
$ ./test
dyld: ./test can't open library: libfoo.0.8.24.dylib
(No such file or directory, errno = 2)
Trace/BPT trap
I have tried several permutations of -compatibility_version and
-install_name with no effect.
How does one create a shared library so that the loader will accept a
newer library version provided it is not less than X.Y.Z?
Thanks,
Mike
--
IRC - where men are men, women are men, and the boys are FBI agents.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden