diff options
author | Matt Messier <mmessier@grapetv.org> | 2007-05-04 20:51:33 -0400 |
---|---|---|
committer | Matt Messier <mmessier@grapetv.org> | 2007-05-04 20:51:33 -0400 |
commit | b5de3be503bc9fac73ffbcaf6ce92970195c122f (patch) | |
tree | f02effcd0dbf9dba4637119487e2075b92c7855d /m4 | |
parent | 38c69c107eecc5fbdf9a10d8fbf1577ba998126b (diff) | |
download | xine-lib-b5de3be503bc9fac73ffbcaf6ce92970195c122f.tar.gz xine-lib-b5de3be503bc9fac73ffbcaf6ce92970195c122f.tar.bz2 |
Begin cleaning up compiler command-line flags
- Removed debug related targets from all Makefiles. Debug builds are now fully
controlled by --enable-debug passed to configure
- Disable optimizations by default when configuring with --enable-debug
- Added --enable-profiling for building profile builds. This has problems with
optimizations currently, but that'll get taken care of over time.
- Initialize ASFLAGS/CFLAGS/CPPFLAGS/OBJCFLAGS/LDFLAGS early so that autoconf
defaults don't come into play.
- Added some additional commentary to configure.ac
Diffstat (limited to 'm4')
-rw-r--r-- | m4/optimizations.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/optimizations.m4 b/m4/optimizations.m4 index cc5e7c524..d47dc94e0 100644 --- a/m4/optimizations.m4 +++ b/m4/optimizations.m4 @@ -8,8 +8,10 @@ dnl Note: always disable while crosscompiling dnl AC_DEFUN([AC_OPTIMIZATIONS], [ - AC_ARG_ENABLE([optimizations], - AS_HELP_STRING([--disable-optimizations], [Don't try to guess what optimization to enable])) + dnl By default, enable optimizations only if --enable-debug is not specified + AC_ARG_ENABLE([optimizations], + AS_HELP_STRING([--disable-optimizations], [Don't try to guess what optimization to enable]), + [], [test x"$enable_debug" != x"no" && enable_optimizations="no"]) if test "x$enable_optimizations" != "xno"; then INLINE_FUNCTIONS=-finline-functions |