On Sat, 12 Aug 2000 02:32:07 -0500 (CDT),
Adi Linden <[EMAIL PROTECTED]> wrote:
>I am trying to build a couple of binaries that require a lib which isn't
>used anywhere else on the system. How can I specify particular libraries
>to be linked statically? The -static flag works but links everything
>static which makes the binary huge. Is there a way to single out just a
>single specific lib to link statically?
>From ksymoops/Makefile
$(CC) $(OBJECTS) $(CFLAGS) -Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic -o $@
Makes libbfd and libiberty static, everything else is dynamic. Credit
goes to HJ Lu.
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.