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 | e34a69f446b5de47eacebfb6cc71646c63478f6e (patch) | |
tree | b692e40c8b86479eede12de8a1be34320bd2fcd3 /eclass | |
parent | Restore minimum version to requests dep. (diff) | |
download | gentoo-2-e34a69f446b5de47eacebfb6cc71646c63478f6e.tar.gz gentoo-2-e34a69f446b5de47eacebfb6cc71646c63478f6e.tar.bz2 gentoo-2-e34a69f446b5de47eacebfb6cc71646c63478f6e.zip |
enable --enable-linker-build-id by default with gcc-4.5+
Diffstat (limited to '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 |