]> code.ossystems Code Review - openembedded-core.git/commitdiff
poky-eabi.inc: Start using the --as-needed flag when linking to reduce uneeded link...
authorRichard Purdie <richard@openedhand.com>
Thu, 4 Sep 2008 11:48:03 +0000 (11:48 +0000)
committerRichard Purdie <richard@openedhand.com>
Thu, 4 Sep 2008 11:48:03 +0000 (11:48 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5138 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/conf/distro/include/poky-eabi.inc

index 711970bf2c436d178eed89bac93e6056d35ae7a9..c995058ddcb1716e2d6a9c96c1ebb459eddeec5c 100644 (file)
@@ -32,3 +32,8 @@ PREFERRED_VERSION_linux-libc-headers ?= "2.6.24"
 PREFERRED_VERSION_glibc ?= "2.6.1"
 PREFERRED_VERSION_glibc-initial ?= "2.6.1"
 PREFERRED_VERSION_elfutils ?= "0.131"
+
+ASNEEDED = "-Wl,--as-needed"
+ASNEEDED_pn-console-tools = ""
+
+TARGET_LDFLAGS += "${ASNEEDED}"