From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3542 invoked by alias); 25 Mar 2013 12:58:45 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 3150 invoked by uid 89); 25 Mar 2013 12:58:38 -0000 X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from unicorn.mansr.com (HELO unicorn.mansr.com) (78.86.181.103) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 25 Mar 2013 12:58:35 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 0897E15393; Mon, 25 Mar 2013 12:58:33 +0000 (GMT) From: Mans Rullgard To: libc-ports@sourceware.org Subject: [PATCH] ARM: fix preconfigure Date: Mon, 25 Mar 2013 12:58:00 -0000 Message-Id: <1364216301-9993-1-git-send-email-mans@mansr.com> X-SW-Source: 2013-03/txt/msg00157.txt.bz2 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