aboutsummaryrefslogtreecommitdiffstats
path: root/conf/distro/include/angstrom-eglibc.inc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2008-10-15 22:57:49 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2008-10-15 23:11:11 +0200
commit350f068eb5aa57d363b6c32a1b7811f98b3c4e18 (patch)
tree04365702a3291eb06168245785a39179df0d4851 /conf/distro/include/angstrom-eglibc.inc
parentd07c292757ed0773ef38e629642aa1aa15e786a9 (diff)
downloadopenembedded-holger/hash-style.tar.gz
[link] Allow to use -Wl,--as-needed when linking (idea from poky)holger/hash-style
With --as-needed the linker will only emit SO_NEEDED for the libraries that are actually required and not the one given on the command line. This can drastically reduce the number of needed libraries. Sometimes this does not work and this is where broken-as-needed.inc will collect packages that do not work with --as-needed. The current list is taken from poky. Enable this for angstrom and eglibc, glibc and uclibc as this requires a binutils version from around ~2006. Also bump the DISTRO_PR after this change.
Diffstat (limited to 'conf/distro/include/angstrom-eglibc.inc')
-rw-r--r--conf/distro/include/angstrom-eglibc.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/conf/distro/include/angstrom-eglibc.inc b/conf/distro/include/angstrom-eglibc.inc
index e68a23664b..f5cb1f2b3d 100644
--- a/conf/distro/include/angstrom-eglibc.inc
+++ b/conf/distro/include/angstrom-eglibc.inc
@@ -30,7 +30,9 @@ BUILD_OPTIMIZATION_pn-perl = "-O1"
BUILD_OPTIMIZATION_sparc = "-O2"
TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=gnu"
-DISTRO_PR = ".1"
+TARGET_ASNEEDED = "-Wl,--as-needed"
+
+DISTRO_PR = ".2"
CXXFLAGS += "-fvisibility-inlines-hidden"