[oe-commits] Khem Raj : angstrom-*libc: Disable GNU hash style for mips.
GIT User account
git at amethyst.openembedded.net
Fri Dec 5 22:09:25 UTC 2008
Module: openembedded.git
Branch: org.openembedded.dev
Commit: c4722a23469a7c5a3597671efb4003227266f977
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c4722a23469a7c5a3597671efb4003227266f977
Author: Khem Raj <raj.khem at gmail.com>
Date: Fri Dec 5 14:06:19 2008 -0800
angstrom-*libc: Disable GNU hash style for mips.
* .gnu.hash stuff seems to be fundamentally incompatible with the MIPS ABI
---
conf/distro/include/angstrom-eglibc.inc | 2 +-
conf/distro/include/angstrom-glibc.inc | 2 +-
conf/distro/include/angstrom-uclibc.inc | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/conf/distro/include/angstrom-eglibc.inc b/conf/distro/include/angstrom-eglibc.inc
index 1d38e5f..c0d87a4 100644
--- a/conf/distro/include/angstrom-eglibc.inc
+++ b/conf/distro/include/angstrom-eglibc.inc
@@ -29,7 +29,7 @@ BUILD_OPTIMIZATION = "-Os"
BUILD_OPTIMIZATION_pn-perl = "-O1"
BUILD_OPTIMIZATION_sparc = "-O2"
-TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=gnu"
+TARGET_LINK_HASH_STYLE = "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel']]}"
CXXFLAGS += "-fvisibility-inlines-hidden"
diff --git a/conf/distro/include/angstrom-glibc.inc b/conf/distro/include/angstrom-glibc.inc
index fdb59f3..b14f880 100644
--- a/conf/distro/include/angstrom-glibc.inc
+++ b/conf/distro/include/angstrom-glibc.inc
@@ -33,7 +33,7 @@ BUILD_OPTIMIZATION_pn-perl = "-O1"
BUILD_OPTIMIZATION_pn-glibc = "-O2"
BUILD_OPTIMIZATION_sparc = "-O2"
-TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=gnu"
+TARGET_LINK_HASH_STYLE = "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel']]}"
CXXFLAGS += "-fvisibility-inlines-hidden"
diff --git a/conf/distro/include/angstrom-uclibc.inc b/conf/distro/include/angstrom-uclibc.inc
index 8383ddc..71b8862 100644
--- a/conf/distro/include/angstrom-uclibc.inc
+++ b/conf/distro/include/angstrom-uclibc.inc
@@ -33,7 +33,7 @@ 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=gnu"
+TARGET_LINK_HASH_STYLE = "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel']]}"
CXXFLAGS += "-fvisibility-inlines-hidden"
More information about the Openembedded-commits
mailing list