This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Phil Edwards wrote:
But that did not help because g++ puts -lgcc -lstdc++ after my:On Thu, Sep 05, 2002 at 06:30:28PM +0200, jean-frederic clere wrote:Phil Edwards wrote:Calling ld directly with -Bstatic -lgcc -lstdc++ -Bdynamic -lc works but there seems to be noway to do it directly from g++.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.
See the GCC manual. Look for -Wl.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |