Commit 866dc475 authored by Simon Morlat's avatar Simon Morlat

fix compilation on windows

parent 3cadf36e
......@@ -607,16 +607,12 @@ STRICT_OPTIONS="-Wall"
#for clang
LDFLAGS_SAV=$LDFLAGS
LDFLAGS="$LDFLAGS -Qunused-arguments -Wall -Werror"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
[[]])]
, [cc_option_q_allowed=yes]
, [cc_option_q_allowed=no])
LD_FLAGS=$LDFLAGS_SAV
if test $cc_option_q_allowed = "yes"; then
STRICT_OPTIONS="$STRICT_OPTIONS -Qunused-arguments"
fi
case $CC in
*clang*)
STRICT_OPTIONS="$STRICT_OPTIONS -Qunused-arguments"
;;
esac
if test "$strictness" = "yes" ; then
STRICT_OPTIONS="$STRICT_OPTIONS -Werror"
CFLAGS="$CFLAGS -fno-strict-aliasing"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment