# HG changeset patch # User Sam Lantinga # Date 1295424463 28800 # Node ID 6a0803e47c7bc7b86a7cab2a0d348c7f27c32725 # Parent 5d7d48157be7f94c922d391bb6fb032f448217de Greg Jandl to SDL I *think* the patch below works correctly: sdl-config gets the -march flag and SDL builds fine. Perhaps there's a better way to get the -march flag into both CFLAGS and SDL_FLAGS w/o dragging along more cruft, but adding it to BASE_CFLAGS seemed the best bet to my eyes. diff -r 5d7d48157be7 -r 6a0803e47c7b configure.in --- a/configure.in Tue Jan 18 22:40:45 2011 -0800 +++ b/configure.in Wed Jan 19 00:07:43 2011 -0800 @@ -48,7 +48,6 @@ dnl Detect the canonical build and host environments dnl AC_CANONICAL_HOST -AX_GCC_ARCHFLAG([no]) dnl Check for tools AC_PROG_LIBTOOL @@ -84,6 +83,9 @@ BASE_LDFLAGS="" ;; esac +# Uncomment the following line if you want to force SDL and applications +# built with it to be compiled for a particular architecture. +#AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]") BUILD_CFLAGS="$CFLAGS $CPPFLAGS" # The default optimization for SDL 1.3 is -O3 (Bug #31) if test x$orig_CFLAGS = x; then