arm: only modify CFLAGS when configuring for arm-linux*eabi
authorAndreas Schwab <schwab@redhat.com>
Mon, 22 Nov 2010 16:20:19 +0000 (17:20 +0100)
committerAndreas Schwab <schwab@redhat.com>
Mon, 22 Nov 2010 16:46:49 +0000 (17:46 +0100)
ChangeLog.arm
sysdeps/arm/preconfigure

index 69a28c6..08ed967 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-22  Andreas Schwab  <schwab@redhat.com>
+
+       * sysdeps/arm/preconfigure: Only modify CFLAGS when configuring
+       for arm-linux*eabi.
+
 2010-10-19  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/arm/bits/mathdef.h (FP_FAST_FMA, FP_FAST_FMAF,
index 313da79..4b974cb 100644 (file)
@@ -4,6 +4,10 @@ arm*)
        case $config_os in
        linux-gnueabi)
                machine=arm/eabi/$machine
+               if [ "${CFLAGS+set}" != "set" ]; then
+                 CFLAGS="-g -O2"
+               fi
+               CFLAGS="$CFLAGS -fno-unwind-tables"
                ;;
        *)
                machine=arm/$machine
@@ -11,7 +15,3 @@ arm*)
        esac
        ;;
 esac
-if [ "${CFLAGS+set}" != "set" ]; then
-  CFLAGS="-g -O2"
-fi
-CFLAGS="$CFLAGS -fno-unwind-tables"