libtool-patches
[Top][All Lists]
Advanced

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

Re: another 1.5 release?


From: Daniel Reed
Subject: Re: another 1.5 release?
Date: Sun, 30 Jan 2005 14:30:59 -0500 (EST)

On 2005-01-29T21:58-0200, Alexandre Oliva wrote:
) On Jan 29, 2005, Daniel Reed <address@hidden> wrote:
) > ./configure CC=gcc
) > ./libtool mycc file.c -o file.lo -lpopt
) This has never been supported, and the tag auto-detection code will
) actually get it to fail before we have a chance to actually try to run
) mycc, I think.

# libtool --mode=link gcc file.o -o file -lpopt
gcc file.o -o file  /usr/lib/libpopt.so

# libtool --mode=link gcc4 file.o -o file -lpopt
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'

# libtool --mode=link --tag=CC gcc4 file.o -o file -lpopt
gcc4 file.o -o file  /usr/lib/libpopt.so


With a tag specified, Libtool accepts a different linker but still uses its
internal library searching routines (which would use the multilib2 path),
even if the provided linker does not match the one used at configure time.

And this is possible in practice. In an autotooled build tree:
# ./configure CC=gcc
 ...
# make CC=gcc4
 ...
/bin/sh ../libtool --tag=CC --mode=link gcc4  -std=gnu99 -Wall -O0 -g3 -g3   -o 
naim -dlopen self -export-dynamic -no-undefined buddy.o conio.o echof.o 
events.o fireio.o hamster.o help.o helpcmd.o hwprintf.o linux_vsprintf.o main.o 
modutil.o rc.o rodents.o script.o set.o win.o ../firetalk/libfiretalk.a 
../libltdl/libltdlc.la ../secs/libsecs.a -lncurses
 ...
gcc4 -std=gnu99 -Wall -O0 -g3 -g3 -o naim .libs/naimS.o buddy.o conio.o echof.o 
events.o fireio.o hamster.o help.o helpcmd.o hwprintf.o linux_vsprintf.o main.o 
modutil.o rc.o rodents.o script.o set.o win.o -Wl,--export-dynamic  
../firetalk/libfiretalk.a ../libltdl/.libs/libltdlc.a -ldl ../secs/libsecs.a 
-lncurses


-- 
Daniel Reed <address@hidden>    http://people.redhat.com/djr/   
http://naim.n.ml.org/
I don't like sending my conversation hundreds of miles where a lot
of people can read it o_0 even if I am just talking about cheese. --
Avatar214, re: encryption in naim




reply via email to

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