Line
Link Here
|
|
* respect system flags |
|
* respect system flags |
1 |
-- a/configure.in |
1 |
++ b/configure.in |
Lines 194-205
AM_CONDITIONAL(X11VDPAU_CORE, test "$enable_x11vdpau" = "yes")
Link Here
|
194 |
AC_CHECK_HEADERS(linux/compiler.h linux/unistd.h asm/page.h signal.h) |
194 |
AC_CHECK_HEADERS(linux/compiler.h linux/unistd.h asm/page.h signal.h) |
195 |
|
195 |
|
196 |
|
196 |
|
197 |
dnl Clear default CFLAGS |
197 |
CFLAGS="-ffast-math $CFLAGS" |
198 |
if test x"$CFLAGS" = x"-g -O2"; then |
|
|
199 |
CFLAGS= |
200 |
fi |
201 |
|
202 |
CFLAGS="-ffast-math -pipe $CFLAGS" |
203 |
|
198 |
|
204 |
DFB_INTERNAL_CFLAGS="-D_GNU_SOURCE $DFB_INTERNAL_CFLAGS" |
199 |
DFB_INTERNAL_CFLAGS="-D_GNU_SOURCE $DFB_INTERNAL_CFLAGS" |
205 |
|
200 |
|
Lines 467-473
AC_ARG_ENABLE(debug,
Link Here
|
467 |
[enable debugging @<:@default=no@:>@]), |
462 |
[enable debugging @<:@default=no@:>@]), |
468 |
[], [enable_debug=no]) |
463 |
[], [enable_debug=no]) |
469 |
if test "$enable_debug" = "yes"; then |
464 |
if test "$enable_debug" = "yes"; then |
470 |
CFLAGS="-g3 -O0 -fno-inline -Wno-inline $CFLAGS" |
465 |
CFLAGS="-fno-inline -Wno-inline $CFLAGS" |
471 |
DIRECT_BUILD_DEBUG=1 |
466 |
DIRECT_BUILD_DEBUG=1 |
472 |
else |
467 |
else |
473 |
DIRECT_BUILD_DEBUG=0 |
468 |
DIRECT_BUILD_DEBUG=0 |
Lines 483-495
AC_ARG_ENABLE(debug-support,
Link Here
|
483 |
[], [enable_debug_support=yes]) |
478 |
[], [enable_debug_support=yes]) |
484 |
if test "$enable_debug_support" = "yes" || test "$enable_debug" = "yes"; then |
479 |
if test "$enable_debug_support" = "yes" || test "$enable_debug" = "yes"; then |
485 |
enable_debug_support=yes |
480 |
enable_debug_support=yes |
486 |
if test "$enable_debug" = "no"; then |
|
|
487 |
CFLAGS="-g2 $CFLAGS" |
488 |
fi |
489 |
CFLAGS="-O3 $CFLAGS" |
490 |
DIRECT_BUILD_DEBUGS=1 |
481 |
DIRECT_BUILD_DEBUGS=1 |
491 |
else |
482 |
else |
492 |
CFLAGS="-O3 -g0 $CFLAGS" |
|
|
493 |
DIRECT_BUILD_DEBUGS=0 |
483 |
DIRECT_BUILD_DEBUGS=0 |
494 |
fi |
484 |
fi |
495 |
AM_CONDITIONAL(ENABLE_DEBUGS, test "$enable_debug_support" = "yes") |
485 |
AM_CONDITIONAL(ENABLE_DEBUGS, test "$enable_debug_support" = "yes") |
Lines 2750-2757
Link Here
|
2750 |
|
2750 |
|
2751 |
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir) |
2751 |
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir) |
2752 |
|
2752 |
|
2753 |
CFLAGS="$CFLAGS -Werror-implicit-function-declaration" |
|
|
2754 |
|
2755 |
AC_ARG_ENABLE(extra-warnings, |
2753 |
AC_ARG_ENABLE(extra-warnings, |
2756 |
AC_HELP_STRING([--enable-extra-warnings], |
2754 |
AC_HELP_STRING([--enable-extra-warnings], |
2757 |
[enable extra warnings @<:@default=no@:>@]), |
2755 |
[enable extra warnings @<:@default=no@:>@]), |
Lines 2761-2767
Link Here
|
2761 |
fi |
2759 |
fi |
2762 |
|
2760 |
|
2763 |
if test "$GCC" = "yes"; then |
2761 |
if test "$GCC" = "yes"; then |
2764 |
CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing -Werror-implicit-function-declaration $CFLAGS" |
2762 |
CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing $CFLAGS" |
2765 |
CXXFLAGS="-Wall -Wno-strict-aliasing $CXXFLAGS" |
2763 |
CXXFLAGS="-Wall -Wno-strict-aliasing $CXXFLAGS" |
2766 |
fi |
2764 |
fi |
2767 |
|
2765 |
|