aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-07-30 15:09:12 +0100
committerPeter Maydell <peter.maydell@linaro.org>2012-07-30 15:09:41 +0100
commitf41c9e4f3fe72e0972c93f20d2f1532bdc26eb67 (patch)
treedfcb191585bc1b7fe038c76e61b5b68f533a7a72
parente2498fb50043262fec4ed846b9f43396e0dc9637 (diff)
configure: Replace bash code by standard shell code
"+=" 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>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index ec95819f6e..f74bf0f04f 100755
--- a/configure
+++ b/configure
@@ -2812,7 +2812,7 @@ int main(int argc, char **argv)
}
EOF
if ! compile_prog "" "" ; then
- CFLAGS+="-march=i486"
+ CFLAGS="-march=i486 $CFLAGS"
fi
fi