This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH] ARM: fix preconfigure
- From: Mans Rullgard <mans at mansr dot com>
- To: libc-ports at sourceware dot org
- Date: Mon, 25 Mar 2013 12:58:21 +0000
- Subject: [PATCH] ARM: fix preconfigure
After the conversion to autoconf, m4 eats the square brackets causing
CFLAGS to be unconditionally reset. Using 'test' instead of brackets
fixes this.
'preconfigure' manually updated as I have no desire to spend time installing
the precise autofoo versions required.
---
ports/sysdeps/arm/preconfigure | 2 +-
ports/sysdeps/arm/preconfigure.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ports/sysdeps/arm/preconfigure b/ports/sysdeps/arm/preconfigure
index 7ba1749..908cd34 100644
--- a/ports/sysdeps/arm/preconfigure
+++ b/ports/sysdeps/arm/preconfigure
@@ -10,7 +10,7 @@ arm*)
# avoid this, add -fno-unwind-tables here and remove it in
# sysdeps/unix/sysv/linux/arm/configure.in after those tests have
# been run.
- if "${CFLAGS+set}" != "set" ; then
+ if test "${CFLAGS+set}" != "set"; then
CFLAGS="-g -O2"
fi
CFLAGS="$CFLAGS -fno-unwind-tables"
diff --git a/ports/sysdeps/arm/preconfigure.in b/ports/sysdeps/arm/preconfigure.in
index 99f2128..f835795 100644
--- a/ports/sysdeps/arm/preconfigure.in
+++ b/ports/sysdeps/arm/preconfigure.in
@@ -10,7 +10,7 @@ arm*)
# avoid this, add -fno-unwind-tables here and remove it in
# sysdeps/unix/sysv/linux/arm/configure.in after those tests have
# been run.
- if [ "${CFLAGS+set}" != "set" ]; then
+ if test "${CFLAGS+set}" != "set"; then
CFLAGS="-g -O2"
fi
CFLAGS="$CFLAGS -fno-unwind-tables"
--
1.8.1.5