Sorry, I made an error in my previous mail... So I added: libfc_la_LDFLAGS = -nostartfiles
and effectivly libtool is running with this option, but libtool ignore it when really performing the link: /bin/sh ../libtool --mode=link gcc -Wall -O3 -DFC_NO_DEBUG -W -lpthread -ldl -o libfc.la -rpath /usr/local/lib -nostartfiles fc_check.lo fc_tools.lo fc_time.lo fc_ressources.lo fc_com.lo fc_memory.lo fc_fifo.lo fc_semaphore.lo rm -fr .libs/libfc.la .libs/libfc.* .libs/libfc.* gcc -shared fc_check.lo fc_tools.lo fc_time.lo fc_ressources.lo fc_com.lo fc_memory.lo fc_fifo.lo fc_semaphore.lo -lpthread -ldl -Wl,-soname -Wl,libfc.so.0 -o .libs/libfc.so.0.0.0 fc_check.lo: In function `_init': fc_check.lo(.text+0x14c): multiple definition of `_init' /usr/lib/crti.o(.init+0x0): first defined here fc_check.lo: In function `_fini': fc_check.lo(.text+0xa90): multiple definition of `_fini' /usr/lib/crti.o(.fini+0x0): first defined here collect2: ld returned 1 exit status make: *** [libfc.la] Erreur 1 The '-nostartfiles' is present on the libtool line, but not transmitted to gcc... Any clue ? -- Yannick
