[Anjuta-list] More on static executable



It seems that libtool filters the -static flag and prevents the static linking 
of an executable.

I use the following commands:

LDFLAGS="-static" ./configure &&
make &&
make install

The last lines of output give me this:

/bin/sh ../libtool --mode=link g++  -w  -static -o syspal  main.o 
exception_c.o file_c.o line_c.o package_c.o system_c.o sysutil.o text_c.o 
token_c.o variable_c.o version_c.o  
mkdir .libs
g++ -w -o syspal main.o exception_c.o file_c.o line_c.o package_c.o system_c.o 
sysutil.o text_c.o token_c.o variable_c.o version_c.o 

In the last line, the -static has been somehow filtered out.

I also tried putting the -static in the linking options from within Anjuta, 
but the result is the same.

Cheers,




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