[oe-commits] Koen Kooi : angstrom: add an option to use -Wl, --as-needed for glibc builds

git version control git at git.openembedded.org
Tue Oct 27 09:29:36 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 44ec0ef1a3cc835b5b1df6b8a340340bcc4342ea
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=44ec0ef1a3cc835b5b1df6b8a340340bcc4342ea

Author: Koen Kooi <koen at openembedded.org>
Date:   Mon Oct 26 18:21:05 2009 +0100

angstrom: add an option to use -Wl,--as-needed for glibc builds

Console-image builds and seems to work, but this needs lots of testing before getting enabled

---

 conf/distro/include/angstrom-glibc.inc   |    3 +++
 conf/distro/include/angstrom-ldflags.inc |   26 ++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/conf/distro/include/angstrom-glibc.inc b/conf/distro/include/angstrom-glibc.inc
index 6fdf0d3..c8607c6 100644
--- a/conf/distro/include/angstrom-glibc.inc
+++ b/conf/distro/include/angstrom-glibc.inc
@@ -24,5 +24,8 @@ BUILD_OPTIMIZATION_pn-perl-native = "-O1 -g"
 
 TARGET_LINK_HASH_STYLE = "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel']]}"
 
+# Disable -Wl,as-needed for now till all the test come back OK
+#require conf/distro/include/angstrom-ldflags.inc
+
 CXXFLAGS += "-fvisibility-inlines-hidden"
 
diff --git a/conf/distro/include/angstrom-ldflags.inc b/conf/distro/include/angstrom-ldflags.inc
new file mode 100644
index 0000000..6c60568
--- /dev/null
+++ b/conf/distro/include/angstrom-ldflags.inc
@@ -0,0 +1,26 @@
+
+# Set as-need to an intermediate var...
+ASNEEDED = "-Wl,--as-needed"
+
+# ...so we can blacklist it for recipes that break with it
+ASNEEDED_pn-console-tools = ""
+ASNEEDED_pn-distcc = ""
+ASNEEDED_pn-openobex = ""
+ASNEEDED_pn-icu = ""
+ASNEEDED_pn-xserver-kdrive-xomap = ""
+ASNEEDED_pn-minimo = ""
+ASNEEDED_pn-pciutils = ""
+ASNEEDED_pn-puzzles = ""
+ASNEEDED_pn-dialer = ""
+ASNEEDED_pn-pulseaudio = ""
+ASNEEDED_pn-python = ""
+ASNEEDED_pn-libproxy = ""
+ASNEEDED_pn-libxsettings-client = ""
+ASNEEDED_pn-libmatchbox = ""
+ASNEEDED_pn-faac = ""
+ASNEEDED_pn-wireless-tools = ""
+ASNEEDED_pn-ffmpeg = ""
+
+# Append it to TARGET_LDLFLAGS 
+TARGET_LDFLAGS += "${ASNEEDED}"
+





More information about the Openembedded-commits mailing list