[oe-commits] Holger Freyther : [commit] Allow the distribution to set the hash-style and enable it for angstrom

GIT User account git at amethyst.openembedded.net
Wed Oct 15 18:16:31 UTC 2008


Module: openembedded.dev.git
Branch: holger/hash-style
Commit: e4f5585fe2bd6564041c2b1ccd4e3aa36094683f
URL:    http://gitweb.openembedded.net/?p=openembedded.dev.git&a=commit;h=e4f5585fe2bd6564041c2b1ccd4e3aa36094683f

Author: Holger Freyther <ich at tamarin.(none)>
Date:   Wed Oct 15 10:30:56 2008 +0200

[commit] Allow the distribution to set the hash-style and enable it for angstrom
    With binutils >= 2.17 we can use --hash-style=both and this will work
    with all versions of glibc. glibc >= 2.5 can take advantage of the new hash
    style and should give better application startup.

---

 conf/bitbake.conf                       |    3 ++-
 conf/distro/include/angstrom-eglibc.inc |    3 +++
 conf/distro/include/angstrom-glibc.inc  |    3 +++
 conf/distro/include/angstrom-uclibc.inc |    2 ++
 4 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index a655fcb..e1dc3aa 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -403,7 +403,8 @@ export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \
 export LDFLAGS = "${TARGET_LDFLAGS}"
 export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \
                          -Wl,-rpath-link,${STAGING_DIR_TARGET}${layout_libdir} \
-                         -Wl,-O1"
+                         -Wl,-O1 \
+                         ${TARGET_LINK_HASH_STYLE} "
 
 # Which flags to leave by strip-flags() in bin/build/oebuild.sh ?
 ALLOWED_FLAGS = "-O -mcpu -march -pipe"
diff --git a/conf/distro/include/angstrom-eglibc.inc b/conf/distro/include/angstrom-eglibc.inc
index 66efa9f..19d1048 100644
--- a/conf/distro/include/angstrom-eglibc.inc
+++ b/conf/distro/include/angstrom-eglibc.inc
@@ -29,5 +29,8 @@ BUILD_OPTIMIZATION = "-Os"
 BUILD_OPTIMIZATION_pn-perl = "-O1"
 BUILD_OPTIMIZATION_sparc = "-O2"
 
+TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=both"
+DISTRO_PR = ".1"
+
 CXXFLAGS += "-fvisibility-inlines-hidden"
 
diff --git a/conf/distro/include/angstrom-glibc.inc b/conf/distro/include/angstrom-glibc.inc
index 6b9348d..0a68f02 100644
--- a/conf/distro/include/angstrom-glibc.inc
+++ b/conf/distro/include/angstrom-glibc.inc
@@ -33,5 +33,8 @@ BUILD_OPTIMIZATION_pn-perl = "-O1"
 BUILD_OPTIMIZATION_pn-glibc = "-O2"
 BUILD_OPTIMIZATION_sparc = "-O2"
 
+TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=both"
+DISTRO_PR = ".1"
+
 CXXFLAGS += "-fvisibility-inlines-hidden"
 
diff --git a/conf/distro/include/angstrom-uclibc.inc b/conf/distro/include/angstrom-uclibc.inc
index 8993a6a..f4f7a05 100644
--- a/conf/distro/include/angstrom-uclibc.inc
+++ b/conf/distro/include/angstrom-uclibc.inc
@@ -32,6 +32,8 @@ BUILD_OPTIMIZATION = "-Os"
 #Note that this testing was done without the gcc-pr32889.patch.
 FULL_OPTIMIZATION_avr32 = "-Os -fomit-frame-pointer"
 
+TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=both"
+DISTRO_PR = ".1"
 
 CXXFLAGS += "-fvisibility-inlines-hidden"
 





More information about the Openembedded-commits mailing list