summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-01-15 02:26:54 +0100
committerCharles Pigott <charlespigott@googlemail.com>2019-01-16 19:27:06 +0000
commitee84f98f1e1c2063bb2a0c3405200c1a8ff9b970 (patch)
tree63da22a2139d0529d617ba6670a70fa9810af189 /config.lib
parent5a09337c2018a7ee371e2e96220ee0d06b1df753 (diff)
downloadopenttd-ee84f98f1e1c2063bb2a0c3405200c1a8ff9b970.tar.xz
Fix: deps calculation call could fail due to command line length
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index 566309ada..1ef51f72a 100644
--- a/config.lib
+++ b/config.lib
@@ -1959,7 +1959,7 @@ make_cflags_and_ldflags() {
cflags_makedep="`echo | $cxx_host $CXXFLAGS -E -x c++ -dM - | sed 's@.define @-D@g;s@ .*@ @g;s@(.*)@@g' | tr -d '\r\n'`"
# Please escape ALL " within ` because e.g. "" terminates the string in some sh implementations
- cflags_makedep="$cflags_makedep `echo \"$CFLAGS\" \"$CXXFLAGS\" | sed 's@ /@ -@g;s@-I[ ]*[^ ]*@@g'`"
+ cflags_makedep="$cflags_makedep `echo \"$CFLAGS\" \"$CXXFLAGS\" | sed 's@ /@ -@g;s@-I[ ]*[^ ]*@@g;s@[ ]*-[^D][^ ]*@@g'`"
else
makedepend=""
fi