diff options
Diffstat (limited to 'cygwin-scripts.sh')
-rwxr-xr-x | cygwin-scripts.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cygwin-scripts.sh b/cygwin-scripts.sh index ef2345a..1a0324f 100755 --- a/cygwin-scripts.sh +++ b/cygwin-scripts.sh @@ -30,6 +30,15 @@ else NAME="`basename $0|tr -- - _`" fi +# When using the CMake wrappers, prevent CFLAGS and CXXFLAGS from being set +# unless they're already set in the current environment (RHBZ #1136069) +if [[ $NAME == *cmake* ]] ; then + CYGWIN32_CFLAGS=${CYGWIN32_CFLAGS:-""} + CYGWIN32_CXXFLAGS=${CYGWIN32_CXXFLAGS:-""} + CYGWIN64_CFLAGS=${CYGWIN64_CFLAGS:-""} + CYGWIN64_CXXFLAGS=${CYGWIN64_CXXFLAGS:-""} +fi + # NOTE: The use of 'eval' in combination with '$@' is a potential security risk # We should find a more safe replacement for this command # Suggestions are welcome at the Fedora MinGW mailing list |