]> git.pld-linux.org Git - packages/crossmingw32-allegro.git/blob - allegro-opt.patch
- updated for 4.1.12
[packages/crossmingw32-allegro.git] / allegro-opt.patch
1 --- allegro-4.1.12/configure.in.orig    2003-11-11 21:59:10.385928944 +0100
2 +++ allegro-4.1.12/configure.in 2003-11-11 22:02:54.074923048 +0100
3 @@ -645,41 +645,16 @@
4  AC_CHECK_FUNCS(memcmp mkstemp stricmp strlwr strupr)
5  
6  dnl Tweak header files for library build
7 -CFLAGS="$CFLAGS -DALLEGRO_LIB_BUILD"
8 +CFLAGS="$TARGET_ARCH -DALLEGRO_LIB_BUILD"
9  
10  dnl How to compile C and asm files.
11  if test -n "GCC"; then
12 -  if test "X$allegro_strict_warnings" = "Xyes"; then
13 -    WFLAGS="-Wall -W -Wstrict-prototypes -Wno-unused -Werror"
14 -  else
15 -    WFLAGS="-Wall -Wno-unused"
16 -  fi
17 -  if test "X$allegro_cv_processor_type" = "Xi386"; then
18 -    if test "$allegro_exclusive_optimizations" != none; then
19 -      TARGET_ARCH="-march=$allegro_exclusive_optimizations"
20 -    else
21 -      TARGET_ARCH="-mcpu=$allegro_optimizations"
22 -    fi
23 -  else
24 -    TARGET_ARCH=
25 -  fi
26 -  if test "X$allegro_cv_can_use_pipe" = "Xyes"; then
27 -    CFLAGS="$CFLAGS -pipe"
28 -  fi
29 -  dnl Allow to specify additional flags.
30 -  CFLAGS="$CFLAGS $XCFLAGS"
31 -  WFLAGS="$WFLAGS $WCFLAGS"
32 -  dnl In this order...
33 -  ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE"
34 +  WFLAGS="-Wall -Wno-unused"
35 +  ALLEGRO_DEBUG_CFLAGS="-g $WFLAGS -DDEBUGMODE"
36    if test "X$allegro_debug_with_fortify" = "Xyes"; then
37       ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY"
38    fi
39 -  ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
40 -  if test "X$allegro_cv_support_fomit_frame_pointer" = "Xyes"; then
41 -    CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math -fomit-frame-pointer $WFLAGS"
42 -  else
43 -    CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
44 -  fi
45 +  ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS"
46    ALLEGRO_SFLAGS="-x assembler-with-cpp"
47    ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED"
48  else
This page took 0.063506 seconds and 3 git commands to generate.