mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
fix compilation on windows
This commit is contained in:
parent
3cadf36e00
commit
866dc475a7
1 changed files with 6 additions and 10 deletions
16
configure.ac
16
configure.ac
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue