vapier      14/10/17 02:48:01

  Modified:             toolchain.eclass
  Log:
  enable --enable-linker-build-id by default with gcc-4.5+

Revision  Changes    Path
1.636                eclass/toolchain.eclass

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.636&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.636&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.635&r2=1.636

Index: toolchain.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v
retrieving revision 1.635
retrieving revision 1.636
diff -u -r1.635 -r1.636
--- toolchain.eclass    5 Aug 2014 01:41:01 -0000       1.635
+++ toolchain.eclass    17 Oct 2014 02:48:01 -0000      1.636
@@ -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 <[email protected]>
 
@@ -891,6 +891,12 @@
                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




Reply via email to