summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2016-05-11 18:38:44 +0000
committerrubidium <rubidium@openttd.org>2016-05-11 18:38:44 +0000
commit9ea3e427689134de3c5ea186a50fccf7f4cb2e8e (patch)
tree2d4f678595dd00a0c34e03b71d18262c85872704
parent463a16f1b08f789d74ec4380eb2e9c6197781e30 (diff)
downloadopenttd-9ea3e427689134de3c5ea186a50fccf7f4cb2e8e.tar.xz
(svn r27557) -Fix: bashism that caused different CFLAGS with bash vs dash
-rw-r--r--config.lib4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.lib b/config.lib
index a8c6e129c..0259739eb 100644
--- a/config.lib
+++ b/config.lib
@@ -1490,7 +1490,7 @@ make_cflags_and_ldflags() {
fi
if [ $enable_debug -le 2 ]; then
- cc_host_is_gcc=`basename "$cc_host" | grep "gcc" &>/dev/null`
+ cc_host_is_gcc=`basename "$cc_host" | grep "gcc" 2>/dev/null`
if [ -n "$cc_host_is_gcc" ]; then
# Define only when compiling with GCC. Some GLIBC versions use GNU
# extensions in a way that breaks build with at least ICC.
@@ -1498,7 +1498,7 @@ make_cflags_and_ldflags() {
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
fi
- cc_build_is_gcc=`basename "$cc_build" | grep "gcc" &>/dev/null`
+ cc_build_is_gcc=`basename "$cc_build" | grep "gcc" 2>/dev/null`
if [ -n "$cc_build_is_gcc" ]; then
# Just add -O1 to the tools needed for building.
CFLAGS_BUILD="$CFLAGS_BUILD -D_FORTIFY_SOURCE=2 -O1"