From 74a8a8916419a8efc99d577fda775bd97d82fdb2 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 17 Mar 2008 23:26:08 +0200 Subject: [PATCH] binutils: Fixed to not build a shared libbfd in toolchain stage --- base/binutils/binutils.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/base/binutils/binutils.conf b/base/binutils/binutils.conf index 42a5899e6..423aa5755 100644 --- a/base/binutils/binutils.conf +++ b/base/binutils/binutils.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../binutils/binutils.conf -# Copyright (C) 2007 The OpenSDE Project +# Copyright (C) 2007 - 2008 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -13,10 +13,6 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- -if [ "$SDECFG_STATIC" != 1 ]; then - var_append confopt ' ' "--enable-shared" -fi - if atstage toolchain; then bindir="/$prefix/crosscc"; mkdir -p $root/$prefix/crosscc var_append confopt " " "--with-sysroot=$sysroot" @@ -25,6 +21,11 @@ if atstage toolchain; then var_append SYSCC_WRAPPER_REMOVE ' ' '-Werror' else hook_add preconf 5 "mkdir -p objdir; cd objdir; configscript=../configure" + + if [ "$SDECFG_STATIC" != 1 ]; then + var_append confopt ' ' "--enable-shared" + fi + if [ $stagelevel -gt 2 ] ; then var_remove confopt " " "--disable-static" fi