Re: [MacPorts] #9167: BUG: inventor-2.1.5 dylibs lack install_names
#9167: BUG: inventor-2.1.5 dylibs lack install_names ------------------------------------+--------------------------------------- Reporter: bhu@… | Owner: css@… Type: enhancement | Status: assigned Priority: Low | Milestone: Port Bugs Component: ports | Version: Resolution: | Keywords: Port: inventor | ------------------------------------+--------------------------------------- Old 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 = \
New 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 = \ }}} -- Comment(by css@…): It should be feasible to use `-install_name $(IVPREFIX)/$(LIBDSO)` in each `GNUmakefile`. -- Ticket URL: <http://trac.macports.org/ticket/9167#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts