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") |