[04/11] configure: Replace bash code by standard shell code

Message ID 1342620628-12751-5-git-send-email-peter.maydell@linaro.org
State New
Headers show

Commit Message

Peter Maydell July 18, 2012, 2:10 p.m.
From: Stefan Weil <sw@weilnetz.de>

"+=" does not work with dash and other simple /bin/sh implementations.

The new code prepends the flag while the old code either did not work
(it continued after an error message which typically was not read) or
appended the flag. That difference should not matter here.

Reported-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/configure b/configure
index feadbe7..f54415d 100755
--- a/configure
+++ b/configure
@@ -2810,7 +2810,7 @@  int main(int argc, char **argv)
   if ! compile_prog "" "" ; then
-    CFLAGS+="-march=i486"
+    CFLAGS="-march=i486 $CFLAGS"