]> git.openpandora.org Git - openembedded.git/commitdiff
angstrom-*libc: Disable GNU hash style for mips.
authorKhem Raj <raj.khem@gmail.com>
Fri, 5 Dec 2008 22:06:19 +0000 (14:06 -0800)
committerKhem Raj <raj.khem@gmail.com>
Fri, 5 Dec 2008 22:06:19 +0000 (14:06 -0800)
* .gnu.hash stuff seems to be fundamentally incompatible with the MIPS ABI

conf/distro/include/angstrom-eglibc.inc
conf/distro/include/angstrom-glibc.inc
conf/distro/include/angstrom-uclibc.inc

index 1d38e5f316d11db59b0772501a60b06a42aeac45..c0d87a4ff5a7482dc18398133ceb7b37b9329593 100644 (file)
@@ -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"
 
index fdb59f3fb5a748e0baeaa6dc0945677b5af0c370..b14f880328512490ead47c11e5ca60106ddf1dae 100644 (file)
@@ -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"
 
index 8383ddcf2d6e43b3fcc084c17f332f6f1c858c60..71b8862e4bb311c90b375edd1a00d58bfb18de30 100644 (file)
@@ -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"