From d68d82c6757e32f56ce5f37d4e9d73ac178ef574 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 25 Nov 2010 18:22:10 +0100 Subject: [PATCH] gcc-final: add autoreconf support, enable LTO and GOLD support Signed-off-by: Stephan Raue --- packages/toolchain/lang/gcc-final/build | 5 +++-- packages/toolchain/lang/gcc-final/meta | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/toolchain/lang/gcc-final/build b/packages/toolchain/lang/gcc-final/build index 861464782e..d941daf9dd 100755 --- a/packages/toolchain/lang/gcc-final/build +++ b/packages/toolchain/lang/gcc-final/build @@ -7,9 +7,7 @@ $SCRIPTS/unpack gcc setup_toolchain host cd $BUILD/gcc* - mkdir -p objdir-$1 && cd objdir-$1 - ../configure --host=$HOST_NAME \ --build=$HOST_NAME \ --target=$TARGET_NAME \ @@ -30,6 +28,9 @@ mkdir -p objdir-$1 && cd objdir-$1 --disable-libmudflap \ --disable-libssp \ --disable-multilib \ + --enable-gold=both/ld \ + --enable-plugin \ + --enable-lto \ --enable-tls \ --enable-shared \ --enable-c99 \ diff --git a/packages/toolchain/lang/gcc-final/meta b/packages/toolchain/lang/gcc-final/meta index 2fee14dd33..3982cf436f 100644 --- a/packages/toolchain/lang/gcc-final/meta +++ b/packages/toolchain/lang/gcc-final/meta @@ -12,3 +12,5 @@ PKG_SECTION="toolchain/lang" PKG_SHORTDESC="gcc: The GNU Compiler Collection Version 4 (aka GNU C Compiler)" PKG_LONGDESC="This package contains the GNU Compiler Collection. It includes compilers for the languages C, C++, Objective C, Fortran 95, Java and others ... This GCC contains the Stack-Smashing Protector Patch which can be enabled with the -fstack-protector command-line option. More information about it ca be found at http://www.research.ibm.com/trl/projects/security/ssp/." PKG_IS_ADDON="no" + +PKG_AUTORECONF="no"