Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Aug 2001 14:12:25 +0200
From:      Bernd Walter <ticso@mail.cicely.de>
To:        freebsd-hackers@freebsd.org
Subject:   linking WITH -lstdc++ makes executeables smaller?
Message-ID:  <20010803141225.A3246@cicely20.cicely.de>

next in thread | raw e-mail | index | archive | help

I used a library which also needed -lstdc++.
Now that I did not need them any more I removed them and was
surprised that the resulting FreeBSD binary actually got bigger!
On NetBSD the binary is slightly smaller as expected.

Is there any logical explanation for this phaenomen?

ticso@cicely8> cc -O -pipe -g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wswitch -o cbckd *.o -lm -lstdc++
ticso@cicely8> ls -al cbckd
-rwxr-xr-x  1 ticso  1000  204628 Aug  3 14:02 cbckd
ticso@cicely8> strip cbckd
ticso@cicely8> ls -al cbckd
-rwxr-xr-x  1 ticso  1000  41300 Aug  3 14:02 cbckd

ticso@cicely8> cc -O -pipe -g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wswitch -o cbckd *.o -lm
ticso@cicely8> ls -al cbckd
-rwxr-xr-x  1 ticso  1000  228832 Aug  3 14:02 cbckd
ticso@cicely8> strip cbckd
ticso@cicely8> ls -al cbckd
-rwxr-xr-x  1 ticso  1000  59636 Aug  3 14:02 cbckd

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
ticso@cicely.de         Usergroup           info@cosmo-project.de


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010803141225.A3246>