changeset 1809:9cdd90bdce76 draft

Grrr, forgot to check in a patch. Fix second stage cross compiler build with elf2flt by only building static libraries.
author Rob Landley <rob@landley.net>
date Thu, 05 Nov 2015 09:59:14 -0600
parents 239628b40176
children 3a66b5554d1e
files sources/sections/gcc.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/sections/gcc.sh	Thu Nov 05 04:13:25 2015 -0600
+++ b/sources/sections/gcc.sh	Thu Nov 05 09:59:14 2015 -0600
@@ -56,6 +56,7 @@
   # GCC has some deep assumptions here, which are wrong.  Lots of redundant
   # corrections are required to make it stop.
 
+  [ -z "$ELF2FLT" ] && X=--enable-shared || X=--disable-shared
   CC="${HOST_ARCH}-cc" AR="${HOST_ARCH}-ar" AS="${HOST_ARCH}-as" \
     LD="${HOST_ARCH}-ld" NM="${HOST_ARCH}-nm" \
     CC_FOR_TARGET="${ARCH}-cc" AR_FOR_TARGET="${ARCH}-ar" \
@@ -67,7 +68,7 @@
     ac_cv_path_NM_FOR_TARGET="${ARCH}-nm" \
     ac_cv_path_AS_FOR_TARGET="${ARCH}-as" \
     ac_cv_path_LD_FOR_TARGET="${ARCH}-ld" \
-    configure_gcc --enable-threads=posix --enable-shared \
+    configure_gcc --enable-threads=posix $X \
       --build="$CROSS_HOST" --host="${CROSS_TARGET/unknown-elf/walrus-elf}"
 fi