-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Trevor Harmon wrote:
| $ otool -hv /sw/lib/liblpsolve55j.jnilib | /sw/lib/liblpsolve55j.jnilib: | Mach header | magic cputype cpusubtype caps filetype ncmds | sizeofcmds flags | MH_MAGIC I386 ALL 0x00 DYLIB 12 1080 | NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK | NO_REEXPORTED_DYLIBS | | So... Why does Shlibs work without the path but not with it? Because the build of this tool is slightly broken in that it's not giving a full install_name when linking. (From your previous post:) $ otool -L /sw/lib/liblpsolve55j.jnilib /sw/lib/liblpsolve55j.jnilib: liblpsolve55j.jnilib (compatibility version 5.5.0, current version 5.5.0) That should be this: $ otool -L /sw/lib/liblpsolve55j.jnilib /sw/lib/liblpsolve55j.jnilib: /sw/lib/liblpsolve55j.jnilib (compatibility version 5.5.0, current version 5.5.0) You can either build it with: gcc -o liblpsolve55j.jnilib -dynamiclib -compatibility_version 5.5 \ ~ -install_name /sw/lib/liblpsolve55j.jnilib <files> or: gcc -o liblpsolve55j.jnilib -bundle <files> And from what Peter said, make sure that it doesn't have -flat_namespace in the link line. If it uses gnu libtool and automake, usually you're fine with something like this in the Makefile.in: liblpsolve55j_la_LDFLAGS: -module -avoid-version - -- Benjamin Reed a.k.a. Ranger Rick Fink, KDE, and Mac OS X development http://www.racoonfink.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD4DBQFH+stdUu+jZtP2Zf4RAhojAJjbjNTAWfjb0wgJ4plqXCLuAgXtAKCSTI/p DQJfOsH+6dgB+QCdeynkMQ== =013d -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel