This is the mail archive of the gcc-help@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]

Re: Static linking to libgcc_s and libstdc++


Hi John,

 In the past i have passed link options through gcc/g++
to the platform linker to do this sort of thing by means
of -Wl,option1,option2.... The idea is to switch to static
linking before the -l option for the lib, you want to link
to statically, and back to shared linking after it.
 Depending on what combination of shared/static libs you
want to use, you might need to tell gcc not to implicitly
link with its libs with the -nostdlib and do that manually.

Yours sincerely,

Bjorn


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]