[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libtool --mode=link reorders -R commands
From: |
wls |
Subject: |
libtool --mode=link reorders -R commands |
Date: |
Thu, 28 Mar 2002 14:46:16 -0500 (EST) |
I am not sure if this is an ImageMagick or a libtool problem, although I
mainly suspect libtool.
System: sparc running Solaris 2.6
libtool version (from ltmain.sh):
VERSION=1.4e
TIMESTAMP=" (1.1087 2002/01/11 00:25:18)"
When trying to build ImageMagick-5.4.4 there appears in the make output the
snippet (lines broken for clarity)
/bin/sh ../libtool --mode=link gcc -L/usr/Local/lib -R/usr/Local/lib -O3 \
-mtune=ultrasparc -mcpu=v8 -Wall -L/local/lib -R/local/lib -L/local/lib \
-L/usr/X11R6/lib -R/usr/X11R6/lib -o composite -L/local/lib -R/local/lib \
-L/local/lib -L/usr/X11R6/lib -R/usr/X11R6/lib composite.o \
../magick/libMagick.la
mkdir .libs
gcc -O3 -mtune=ultrasparc -mcpu=v8 -Wall -o composite composite.o \
-L/usr/Local/lib -L/local/lib -L/usr/X11R6/lib \
../magick/.libs/libMagick.a -ljbig -ltiff \
/local/lib/libfreetype.so /local/lib/libjpeg.so \
-lpng -lXext -lXt -lSM -lICE -lX11 -lsocket -lnsl -lbz2 -lz -lpthread \
-lm -R/local/lib -R/local/lib -R/usr/Local/lib -R/usr/X11R6/lib
/usr/Local/lib contains versions of some of the shared libraries optimized for
the sparc version of the machine running the program. These libraries are also
present in /local/lib for the sake of old programs haven't been relinked to
look in /usr/Local/lib. I really wanted to put -R/usr/Local/lib before
R/local/lib in the run time search path. I tricked configure to order the
libraries the way I wanted by setting environment variable
CC='gcc -L/usr/Local/lib -R/usr/Local/lib'. However libtool itself seems to
be reordering the -R directories to alphabetical order. If it is trying to
avoid duplicating directories, it is failing as -R/local/lib appears twice.
Bill Sebok Computer Software Manager, Univ. of Maryland, Astronomy
Internet: address@hidden URL: http://www.astro.umd.edu/~wls/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- libtool --mode=link reorders -R commands,
wls <=