[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking only one library statically?
From: |
Jochen Küpper |
Subject: |
Re: Linking only one library statically? |
Date: |
Mon, 31 Jan 2005 22:51:59 +0100 |
Matthias <nospam@digitalraid.com> writes:
> I know that ld has a flag called static. But what if I don't want ALL
> libs to be statically linked, but only some?
RTFM; and use -Bdynamic as well...
,----[ (info "(ld)Options") ]
| `-Bdynamic'
| `-dy'
| `-call_shared'
| Link against dynamic libraries. This is only meaningful on
| platforms for which shared libraries are supported. This option
| is normally the default on such platforms. The different variants
| of this option are for compatibility with various systems. You
| may use this option multiple times on the command line: it affects
| library searching for `-l' options which follow it.
`----
,----[ (info "(ld)Options") ]
| `-Bstatic'
| `-dn'
| `-non_shared'
| `-static'
| Do not link against shared libraries. This is only meaningful on
| platforms for which shared libraries are supported. The different
| variants of this option are for compatibility with various
| systems. You may use this option multiple times on the command
| line: it affects library searching for `-l' options which follow
| it. This option also implies `--unresolved-symbols=report-all'.
`----
Greetings,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D
(Part 3 you find in my messages before fall 2003.)
pgpMZPlSZp6F8.pgp
Description: PGP signature