diff options
author | glx <glx@openttd.org> | 2019-01-15 02:26:54 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-01-16 19:27:06 +0000 |
commit | ee84f98f1e1c2063bb2a0c3405200c1a8ff9b970 (patch) | |
tree | 63da22a2139d0529d617ba6670a70fa9810af189 /config.lib | |
parent | 5a09337c2018a7ee371e2e96220ee0d06b1df753 (diff) | |
download | openttd-ee84f98f1e1c2063bb2a0c3405200c1a8ff9b970.tar.xz |
Fix: deps calculation call could fail due to command line length
Diffstat (limited to 'config.lib')
-rw-r--r-- | config.lib | 2 |
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 |