mirror of https://github.com/odrling/Aegisub
Add a new flag: --disable-compiler-flags which disables *all* default
compiler flags. Originally committed to SVN as r2727.
This commit is contained in:
parent
342ab23e88
commit
fce6a3716a
|
@ -203,6 +203,10 @@ CC="$PTHREAD_CC";
|
||||||
######################
|
######################
|
||||||
# Check compiler flags
|
# Check compiler flags
|
||||||
######################
|
######################
|
||||||
|
AC_ARG_ENABLE(compiler-flags, [ --disable-compiler-flags
|
||||||
|
Disable *all* additional compiler flags. (default=no)])
|
||||||
|
|
||||||
|
if test "$enable_compiler_flags" != "no"; then
|
||||||
AC_C_FLAG([-Wall])
|
AC_C_FLAG([-Wall])
|
||||||
AC_C_FLAG([-O2])
|
AC_C_FLAG([-O2])
|
||||||
AC_C_FLAG([-Wextra],[AC_C_FLAG([-W])])
|
AC_C_FLAG([-Wextra],[AC_C_FLAG([-W])])
|
||||||
|
@ -216,7 +220,7 @@ AC_CXX_FLAG([-O2])
|
||||||
AC_CXX_FLAG([-fpermissive])
|
AC_CXX_FLAG([-fpermissive])
|
||||||
AC_CXX_FLAG([-fno-strict-aliasing])
|
AC_CXX_FLAG([-fno-strict-aliasing])
|
||||||
AC_CXX_FLAG([-std=c++98])
|
AC_CXX_FLAG([-std=c++98])
|
||||||
|
fi
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
# Check Headers / Features / Libraries
|
# Check Headers / Features / Libraries
|
||||||
|
|
Loading…
Reference in New Issue