summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-07-28 08:22:09 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-07-28 08:22:09 +0200
commit374859165ea4ff3671a93792d6f511f3a631d234 (patch)
treefad0279603d076cac94fcf4cace15de2aacbff4b
parent491e295147f15f91d2a2067f5de1532b47c2ee32 (diff)
binutils: --enable-initfini-array.
-rwxr-xr-xcross-gnu6
1 files changed, 4 insertions, 2 deletions
diff --git a/cross-gnu b/cross-gnu
index 7da180b0e..dc18d85f3 100755
--- a/cross-gnu
+++ b/cross-gnu
@@ -69,13 +69,15 @@ mkdir -p "$BINUTILS_SRC".obj &&
cd "$BINUTILS_SRC".obj &&
# We use `config.status''s existence as an indicator whether the package was
# configured already. (E.g. when running cross-gnu a second time to update the
-# tool chain.)
+# tool chain.) Force the use of .init_array/.fini_array sections until
+# auto-detection has been fixed.
if ./config.status --version > /dev/null 2>&1; then :; else
"$BINUTILS_SRC"/configure \
--target="$TARGET" \
--prefix="$ROOT" \
--with-sysroot="$SYS_ROOT" \
- --disable-nls
+ --disable-nls \
+ --enable-initfini-array
fi &&
"$MAKE" \
all \