libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool drops option


From: Ingo Lütkebohle
Subject: libtool drops option
Date: Thu, 01 Jul 2004 12:23:52 +0200

Hi,

I'm building pango, which uses libtool.

In our site, the order of -L options is important.

libtool drops one of the -L options on RELINK (not on the initial build,
but on installation).  My trouble is that /usr/X11R6/lib contians an
older version of libXft.  On the first build, everything is fine but
when relinking, this version is chose instead of the newer one because
of the -L ordering.

In the following command-line, please note how
"-L/vol/gnome/gnome-dev/lib" is the very first -L option passed to
libtool.  It also occurs a second time, later on, but thats too late.

In the resulting libtool call to gcc, the option has been dropped.

Call:
(cd /vol/gnome/gnome-dev/cvs/pango/pango; /bin/sh ../libtool 
--mode=relink gcc -O3 -pipe -Wall -L/vol/gnome/gnome-dev/lib
-Wl,-rpath,/vol/gnome/gnome-dev/lib -L/vol/vampire/gcc-3.2.3/lib
-Wl,-rpath,/vol/vampire/gcc-3.2.3/lib -o libpangoxft-1.0.la -rpath
/vol/gnome/gnome-dev/lib -version-info 399:1:399 pangoxft-font.lo
pangoxft-fontmap.lo libpangoft2-1.0.la libpango-1.0.la
-L/vol/gnome/gnome-dev/lib -L/usr/X11R6/lib -lXft -lfreetype -lXrender
-lX11 -lfontconfig -L/vol/gnome/gnome-dev/lib -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0 )
libtool: link: warning: `/usr/lib//libfreetype.la' seems to be moved

Resulting call to GCC:

gcc -shared  .libs/pangoxft-font.o .libs/pangoxft-fontmap.o  -Wl,--rpath
-Wl,/vol/gnome/gnome-dev/lib -L/usr/lib/ -L/vol/gcc/lib -L/usr/X11R6/lib
-L/usr/lib -L/vol/gnome/gnome-dev/cvs/pango/pango/.libs
-L/vol/gnome/gnome-dev/lib -L/vol/vampire/gcc-3.2.3/lib -lpangoft2-1.0
-lpango-1.0 -lXft -lfreetype -lXrender -lX11 -lfontconfig -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0  -Wl,-rpath -Wl,/vol/gnome/gnome-dev/lib
-Wl,-rpath -Wl,/vol/vampire/gcc-3.2.3/lib -Wl,-soname
-Wl,libpangoxft-1.0.so.0 -o .libs/libpangoxft-1.0.so.0.399.1

Any hints on what could be the reason for that behaviour and how I can
change it?

This is using libtool 1.5.6

Ingo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]