automake
[Top][All Lists]
Advanced

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

Re: (correction) Adding '-nostartfiles' at link stage


From: Alexandre Duret-Lutz
Subject: Re: (correction) Adding '-nostartfiles' at link stage
Date: 29 Apr 2002 19:11:52 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>> "Yannick" == Yannick Perret <address@hidden> writes:

 Yannick> Alexandre Duret-Lutz wrote:

[...]

 adl> Try this:

 adl>   libfc_la_LDFLAGS = -Xlinker -nostartfiles

 Yannick> I added it, and it change nothing.  The _LDFLAGS is
 Yannick> transmitted to 'libtool', but 'libtool' does not use
 Yannick> it at all... 

Yes it does, look at your output:

[...]

 Yannick> gcc -shared  fc_check.lo fc_tools.lo fc_time.lo
 Yannick> fc_ressources.lo fc_com.lo fc_memory.lo fc_fifo.lo
 Yannick> fc_semaphore.lo  -lpthread -ldl  -Wl,-nostartfiles
                                           ^^^^^^^^^^^^^^^^^
 Yannick> -Wl,-soname -Wl,libfc.so.0 -o .libs/libfc.so.0.0.0
 Yannick> fc_check.lo: In function `_init':
 Yannick> fc_check.lo(.text+0x14c): multiple definition of

Simply, my suggestion was wrong: you don't want -Xlinker, because
-nostartfiles is not a linker option (i.e., this is a gcc option
not understood by ld); instead you need

  libfc_la_LDFLAGS = -Xcompiler -nostartfiles

[...]
-- 
Alexandre Duret-Lutz




reply via email to

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