Ticket #9167 (closed enhancement: fixed)
BUG: inventor-2.1.5 dylibs lack install_names
| Reported by: | bhu@… | Owned by: | css@… |
|---|---|---|---|
| Priority: | Low | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Cc: | ||
| Port: | inventor |
Description (last modified by css@…) (diff)
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 = \
Change History
Note: See
TracTickets for help on using
tickets.

