This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH] arm: only modify CFLAGS when configuring for arm-linux*eabi
- From: Andreas Schwab <schwab at redhat dot com>
- To: libc-ports at sourceware dot org
- Date: Mon, 22 Nov 2010 17:47:21 +0100
- Subject: [PATCH] arm: only modify CFLAGS when configuring for arm-linux*eabi
Don't add -fno-unwind-tables for everyone, it is only removed again when
configuring for arm-linux*eabi.
Andreas.
>From b4127c17f0a14d5ea32084a177e3dc10e8a4c094 Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab@redhat.com>
Date: Mon, 22 Nov 2010 17:20:19 +0100
* sysdeps/arm/preconfigure: Only modify CFLAGS when configuring
for arm-linux*eabi.
---
sysdeps/arm/preconfigure | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sysdeps/arm/preconfigure b/sysdeps/arm/preconfigure
index 313da79..4b974cb 100644
--- a/sysdeps/arm/preconfigure
+++ b/sysdeps/arm/preconfigure
@@ -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"
--
1.7.2.3
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."