diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-10-17 02:48:01 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-10-17 02:48:01 +0000 |
commit | 5edb883ffe2f926c191ceda2c907b55151ebf7f3 (patch) | |
tree | f37d5e7f941d919d3e96d58a778cc2dd089b2198 /eclass/toolchain.eclass | |
parent | Restore minimum version to requests dep. (diff) | |
download | historical-5edb883ffe2f926c191ceda2c907b55151ebf7f3.tar.gz historical-5edb883ffe2f926c191ceda2c907b55151ebf7f3.tar.bz2 historical-5edb883ffe2f926c191ceda2c907b55151ebf7f3.zip |
enable --enable-linker-build-id by default with gcc-4.5+
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index f2b24e02f1a6..c168458f72ac 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.635 2014/08/05 01:41:01 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.636 2014/10/17 02:48:01 vapier Exp $ # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -891,6 +891,12 @@ toolchain_src_configure() { confgcc+=( --enable-libstdcxx-time ) fi + # Turn on the -Wl,--build-id flag by default. + # This helps with locating debug files. + tc_version_is_at_least 4.5 && confgcc+=( + --enable-linker-build-id + ) + # newer gcc versions like to bootstrap themselves with C++, # so we need to manually disable it ourselves if tc_version_is_between 4.7 4.8 && ! is_cxx ; then |