Only use -fno-common if we're compiling with GCC

Original commit message from CVS:
Only use -fno-common if we're compiling with GCC
This commit is contained in:
David Schleef 2004-07-31 01:57:47 +00:00
parent 6ef8f673c9
commit 736c22336a

View file

@ -222,8 +222,7 @@ fi
AM_CONDITIONAL(GST_GCOV_ENABLED, test x$enable_gcov = xyes) AM_CONDITIONAL(GST_GCOV_ENABLED, test x$enable_gcov = xyes)
dnl Check for some compiler flags that optimize our code. dnl Check for some compiler flags that optimize our code.
dnl Only enable this for CVS builds for now if test "x$GCC" = xyes; then
if test "x$GST_CVS" = "xyes"; then
AS_COMPILER_FLAG(-fno-common,GST_INT_CFLAGS="$GST_INT_CFLAGS -fno-common",) AS_COMPILER_FLAG(-fno-common,GST_INT_CFLAGS="$GST_INT_CFLAGS -fno-common",)
fi fi