Fully Static linking problem

Johan Maes on1mh at pandora.be
Fri Jul 6 19:43:44 BST 2001


Hi,
I have the following problem:

KDevelop 1.4 , Suse 7.0

Goal: make an exec that is fully statically linked.

1) I create a C++ project (no kde , no qt)
2) I add -static to the linker option.
3) I compile/link the program.
4) KDevelop uses .libtool script (why ???) , but makes a standard executable.
(you see that it dropped -static in the g++ ... line)



Message output:
gmake  all-recursive
gmake[1]: Entering directory `/projects/test'
Making all in test
gmake[2]: Entering directory `/projects/test/test'
Making all in docs
gmake[3]: Entering directory `/projects/test/test/docs'
Making all in en
gmake[4]: Entering directory `/projects/test/test/docs/en'
gmake[4]: Nothing to be done for `all'.
gmake[4]: Leaving directory `/projects/test/test/docs/en'
gmake[4]: Entering directory `/projects/test/test/docs'
gmake[4]: Nothing to be done for `all-am'.
gmake[4]: Leaving directory `/projects/test/test/docs'
gmake[3]: Leaving directory `/projects/test/test/docs'
gmake[3]: Entering directory `/projects/test/test'
g++ -DHAVE_CONFIG_H -I. -I. -I..     -O0 -Wall -W 
-Wtraditional-Wpointer-arith    -c main.cpp
bin/sh ../libtool --mode=link g++  -O0 -Wall -W -Wtraditional -Wpointer-arith 
    -static  -o test   main.o  
g++ -O0 -Wall -W -Wtraditional -Wpointer-arith -o test main.o 
gmake[3]: Leaving directory `/projects/test/test'
gmake[2]: Leaving directory `/projects/test/test'
gmake[2]: Entering directory `/projects/test'
gmake[2]: Leaving directory `/projects/test'
gmake[1]: Leaving directory `/projects/test'
*** success ***
 

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list