diff --git a/configure.ac b/configure.ac index 36afe2ae5..11e641c9e 100644 --- a/configure.ac +++ b/configure.ac @@ -239,7 +239,10 @@ ax_enable_compile_warnings=yes dnl This is too intrusive for our DWG_TYPE_* switches ax_cv_check_cflags__Wswitch_enum=no dnl wasm does not support -fstack-protector yet -if test x$enable_shared = xyes -a x$ac_compiler_gnu = xyes -a x$CC != xemcc; then +if test x$enable_shared = xyes && \ + test x$ac_compiler_gnu = xyes && \ + test x$CC != xemcc +then AX_COMPILER_FLAGS([WARN_CFLAGS],[AM_LDFLAGS],[$ax_is_release], [-fno-semantic-interposition -fwrapv -fno-common -fvisibility=hidden \ -fno-strict-aliasing -ftrivial-auto-var-init=zero \