Kaydet (Commit) 74a2fb36 authored tarafından Luboš Luňák's avatar Luboš Luňák

Revert "Force --std=gnu89 for clang."

Explictly passing any CFLAGS to configure overrides (=disables) CFLAGS that
would be used by default. So if this sets CFLAGS to just --std=gnu89, .c files
will never be built with optimization or debuginfo.

This reverts commit 3a4860a7.
üst 447d523f
......@@ -3190,10 +3190,6 @@ if test "$GCC" = "yes"; then
AC_MSG_RESULT([Clang $CLANG_FULL_VERSION, $CLANGVER])
AC_DEFINE_UNQUOTED(CLANG_FULL_VERSION,$CLANG_FULL_VERSION)
fi
# On Windows MSVC only supports C90 so force gnu89 (especially in clang) to
# to catch potential gnu89/C90 incompatibilities locally.
CFLAGS="$CFLAGS -std=gnu89"
fi
AC_SUBST(COM_GCC_IS_CLANG)
......
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