Skip to content

Commit 5743e16

Browse files
author
rubidium
committed
-Fix: bashism that caused different CFLAGS with bash vs dash
git-svn-id: http://svn.openttd.org/trunk@27557 6aa0318a-3be1-0310-93fa-89fd2396df07
1 parent ebbfdb0 commit 5743e16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config.lib

+2-2
Original file line numberDiff line numberDiff line change
@@ -1490,15 +1490,15 @@ make_cflags_and_ldflags() {
14901490
fi
14911491

14921492
if [ $enable_debug -le 2 ]; then
1493-
cc_host_is_gcc=`basename "$cc_host" | grep "gcc" &>/dev/null`
1493+
cc_host_is_gcc=`basename "$cc_host" | grep "gcc" 2>/dev/null`
14941494
if [ -n "$cc_host_is_gcc" ]; then
14951495
# Define only when compiling with GCC. Some GLIBC versions use GNU
14961496
# extensions in a way that breaks build with at least ICC.
14971497
# This requires -O1 or more, so debug level 3 (-O0) is excluded.
14981498
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
14991499
fi
15001500

1501-
cc_build_is_gcc=`basename "$cc_build" | grep "gcc" &>/dev/null`
1501+
cc_build_is_gcc=`basename "$cc_build" | grep "gcc" 2>/dev/null`
15021502
if [ -n "$cc_build_is_gcc" ]; then
15031503
# Just add -O1 to the tools needed for building.
15041504
CFLAGS_BUILD="$CFLAGS_BUILD -D_FORTIFY_SOURCE=2 -O1"

0 commit comments

Comments
 (0)