]> git.openpandora.org Git - openembedded.git/commitdiff
[commit] Allow the distribution to set the hash-style and enable it for angstrom
authorHolger Hans Peter Freyther <zecke@selfish.org>
Wed, 15 Oct 2008 08:30:56 +0000 (10:30 +0200)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Wed, 15 Oct 2008 19:46:55 +0000 (21:46 +0200)
    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
conf/distro/include/angstrom-eglibc.inc
conf/distro/include/angstrom-glibc.inc

index a655fcb24ccce4cfc1854fe9d71c3b44d2ce0482..e1dc3aa10a914b41383cb081e65285817ddbaf35 100644 (file)
@@ -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"
index 66efa9f651bea5bd02c9f7bbd86752be16539ae1..e68a23664b476a25245491fd8a230512be0b7629 100644 (file)
@@ -29,5 +29,8 @@ BUILD_OPTIMIZATION = "-Os"
 BUILD_OPTIMIZATION_pn-perl = "-O1"
 BUILD_OPTIMIZATION_sparc = "-O2"
 
+TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=gnu"
+DISTRO_PR = ".1"
+
 CXXFLAGS += "-fvisibility-inlines-hidden"
 
index 6b9348db72e57ed1e0a32b45022aaa144cd37e6d..2ba21b20adf1c72852b1b1b57c0c5c89365e3bae 100644 (file)
@@ -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=gnu"
+DISTRO_PR = ".1"
+
 CXXFLAGS += "-fvisibility-inlines-hidden"