Browse Source

binutils: Fixed to not build a shared libbfd in toolchain stage

crossperl
Christian Wiese 17 years ago committed by Alejandro Mery
parent
commit
74a8a89164
  1. 11
      base/binutils/binutils.conf

11
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

Loading…
Cancel
Save