Opened 18 years ago
Last modified 15 years ago
#9167 closed enhancement
Specifying names for the dynamic shared libraries — at Initial Version
Reported by: | bhu@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | cssdev@… | |
Port: | inventor |
Description
The shared libraries (libInventor.dylib and libInventorXt.dylib) are not given "install_name" when linked. The consequence is that we need to set DYLD_LIBRARY_PATH to use the executables that are linked against the libraries. Adding the "install_name" option to the linker's command line should solve the problem.
1) patch for lib/GNUmakefile: --- GNUmakefile 2006-05-29 21:21:36.000000000 -0400 +++ GNUmakefile.new 2006-05-29 21:21:49.000000000 -0400 @@ -3,7 +3,7 @@
LIBDSO = libInventor.so
-LLDDSOOPTS += -L$(IVDEPTH)/libimage -L$(FLDIR) +LLDDSOOPTS += -L$(IVDEPTH)/libimage -install_name /opt/local/lib/libInventor.dylib -L$(FLDIR)
LLDLIBS = \
-ljpeg -limage $(FLLIB) \
2) patch for .../libSoXt --- GNUmakefile 2006-05-29 21:24:59.000000000 -0400 +++ GNUmakefile.new 2006-05-29 21:24:39.000000000 -0400 @@ -7,6 +7,8 @@
-lXm -lXt -lXext -lXi -lX11 -lm \ -lInventor -lGLU -lGL
+LLDDSOOPTS += -install_name /opt/local/lib/libInventorXt.dylib +
LLDLIBS += $(shell [ -e $(X11LIBDIR)/libXp.so ] && echo -lXp)
OBJECTS = \