[MacPorts] #9167: BUG: inventor-2.1.5 dylibs lack install_names
MacPorts
noreply at macports.org
Fri Oct 17 18:37:12 PDT 2008
#9167: BUG: inventor-2.1.5 dylibs lack install_names
------------------------------------+---------------------------------------
Reporter: bhu at cvs.rochester.edu | Owner: css at macports.org
Type: enhancement | Status: assigned
Priority: Low | Milestone: Port Bugs
Component: ports | Version:
Resolution: | Keywords:
Port: inventor |
------------------------------------+---------------------------------------
Changes (by css at macports.org):
* 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 = \
--
--
Ticket URL: <http://trac.macports.org/ticket/9167#comment:10>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list