From: jean-frederic clere <jfrederic.clere@fujitsu-siemens.com>
To: Phil Edwards <phil@jaj.com>
Cc: gcc@gcc.gnu.org
Subject: Re: g++ -static-libgcc not working (g++ 3.0.4).
Date: Thu, 05 Sep 2002 10:03:00 -0000 [thread overview]
Message-ID: <3D778F0B.60900@fujitsu-siemens.com> (raw)
In-Reply-To: <20020905123601.A12892@disaster.jaj.com>
Phil Edwards wrote:
> On Thu, Sep 05, 2002 at 06:30:28PM +0200, jean-frederic clere wrote:
>
>>Phil Edwards wrote:
>>
>>>Specify static linking for just the libraries you want statically linked,
>>>and then revert to dynamic libraries for the rest. See the ld(1) man page
>>>for -Bstatic and -Bdynamic.
>>
>>Calling ld directly with -Bstatic -lgcc -lstdc++ -Bdynamic -lc works but there
>>seems to be noway to do it directly from g++.
>
>
> See the GCC manual. Look for -Wl.
>
But that did not help because g++ puts -lgcc -lstdc++ after my:
-Wl,"-Bstatic" -lstdc++ -lgcc -Wl,"-Bdynamic"
+++
/opt/SMAWPlus/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4/collect2 -V -Y
P,/usr/ccs/lib:/usr/lib -Qy -o htdig
/opt/SMAWPlus/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4/crt1.o
/opt/SMAWPlus/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4/crti.o
/usr/ccs/lib/values-Xa.o
/opt/SMAWPlus/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4/crtbegin.o -L../htlib
-L../htcommon -L../db/dist -L/usr/lib
-L/opt/SMAWPlus/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4
-L/opt/SMAWPlus/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4/../../../../sparc-sun-solaris2.8/lib
-L/usr/ccs/bin -L/usr/ccs/lib
-L/opt/SMAWPlus/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4/../../.. Document.o
HTML.o Images.o Parsable.o Plaintext.o Retriever.o SGMLEntities.o Server.o
URLRef.o htdig.o ExternalParser.o PDF.o ../htcommon/libcommon.a ../htlib/libht.a
../db/dist/libdb.a -lz -lnsl -lsocket -Bstatic -lstdc++ -lgcc -Bdynamic -lstdc++
-lm -lgcc -lc -lgcc
/opt/SMAWPlus/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4/crtend.o
/opt/SMAWPlus/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4/crtn.o
+++
BTW why "-lgcc -lc -lgcc", something wrong in the configure of gcc?
next prev parent reply other threads:[~2002-09-05 17:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-05 5:51 jean-frederic clere
2002-09-05 8:00 ` Phil Edwards
2002-09-05 9:28 ` jean-frederic clere
2002-09-05 9:36 ` Phil Edwards
2002-09-05 10:03 ` jean-frederic clere [this message]
2002-09-05 10:08 ` Phil Edwards
2002-09-06 1:55 ` jean-frederic clere
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D778F0B.60900@fujitsu-siemens.com \
--to=jfrederic.clere@fujitsu-siemens.com \
--cc=gcc@gcc.gnu.org \
--cc=phil@jaj.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).