Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Greg Jandl to SDL
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Jan 19, 2011
1 parent c888256 commit 601abbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.in
Expand Up @@ -48,7 +48,6 @@ AC_SUBST(LT_AGE)

dnl Detect the canonical build and host environments
dnl AC_CANONICAL_HOST
AX_GCC_ARCHFLAG([no])

dnl Check for tools
AC_PROG_LIBTOOL
Expand Down Expand Up @@ -84,6 +83,9 @@ case "$host" in
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
Expand Down

0 comments on commit 601abbf

Please sign in to comment.