On Apr 19, 1:25pm, rimez wrote:
> Subject: [SuSE Linux] making statically linked binaries
>
> Does anyone know where I can find info on making statically linked binaries?
> thanks,
> rimez
I'm not sure if you already got a reply to this, but this is a simple
one. Do a 'man ld' to find the '-Bstatic' ld option will cause it to
link statically. If the linking is being done directly through ld, just
add -Bstatic to the start of your link command.
If gcc is the front-end being used to do the link, then you need to add
-Wl,-Bstatic to get gcc to pass the option to the linker. 'man gcc' should
give you more info on this.
Hope this helps
-Nick
--
+-------------------------------+--------------------------------------------+
| /`--_ Nicholas R LeRoy | In a world without fences, Who needs Gates?|
|{ }/ Norland Corporation | ---- Experience Linux! ---- |
| \ * / W6340 Hackbarth Rd | http://www.linux.org | http://www.ssc.com |
| |___| Fort Atkinson, WI 53538 +--------------------------------------------+
| [EMAIL PROTECTED] | #include <disclaimer.h> |
|http://www3.norland.com/~nleroy| These are my own ideas, not my employer's. |
+----------------------------------------------------------------------------+
--
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archive at http://www.suse.com/Mailinglists/suse-linux-e/index.html