Static binary z C++

lubo lubovpost na pobox.sk
Neděle Únor 11 23:09:21 CET 2001


Zdravim,
mam zdrojaky od cmostool-1.0 a chcem to skompilovat tak,
aby boli staticky zlinkovane. Trochu som upravil
Makefile a pridal parameter -static za g++, ale exe
je stale dyn. linked.
Po spusteni make:
g++ -c -O2 -static -o cmostool.o cmostool.linux.cc                     
cmostool.linux.cc: In function `int main(...)':
cmostool.linux.cc:26: warning: implicit declaration of function `int iopl(...)'
g++ -o cmostool cmostool.o

mam rh62cz, egcs-2.91.66, libstdc++-2.9.0-30.
V man som sa docital, ze g++ je script, kt. spusta gcc,
ale "file /usr/bin/g++" je tohoto nazoru:

/usr/bin/g++: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped

Potrebujem ten stat. exe pre starsiu distrib., kde nie je compilator.
Pomoooooc! Ako s tomu poradit?
____________________________________
P. S. V. P. U.
http://www.pobox.sk/




Další informace o konferenci Linux