summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-10-20 17:16:45 +0000
committerMike Frysinger <vapier@gentoo.org>2014-10-20 17:16:45 +0000
commit71e9213e3e4f1db4414abaecf492c2b3c8cc117e (patch)
treeed4c76092571bdf81104617f44b339023fadff4c /eclass
parentVersion bump RC (diff)
downloadhistorical-71e9213e3e4f1db4414abaecf492c2b3c8cc117e.tar.gz
historical-71e9213e3e4f1db4414abaecf492c2b3c8cc117e.tar.bz2
historical-71e9213e3e4f1db4414abaecf492c2b3c8cc117e.zip
restrict --enable-linker-build-id to known ELF targets #525942
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass14
1 files changed, 9 insertions, 5 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 43c4dbb2230d..6d5a8d74bbc9 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.639 2014/10/19 05:42:28 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.640 2014/10/20 17:16:45 vapier Exp $
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -894,11 +894,15 @@ toolchain_src_configure() {
confgcc+=( --enable-libstdcxx-time )
fi
- # Turn on the -Wl,--build-id flag by default.
+ # Turn on the -Wl,--build-id flag by default for ELF targets. #525942
# This helps with locating debug files.
- tc_version_is_at_least 4.5 && confgcc+=(
- --enable-linker-build-id
- )
+ case ${CTARGET} in
+ *-linux-*|*-elf|*-eabi)
+ tc_version_is_at_least 4.5 && confgcc+=(
+ --enable-linker-build-id
+ )
+ ;;
+ esac
# newer gcc versions like to bootstrap themselves with C++,
# so we need to manually disable it ourselves