]> git.pld-linux.org Git - packages/crossmingw32-allegro.git/blob - allegro-opt.patch
- updated for allegro-4.1.14
[packages/crossmingw32-allegro.git] / allegro-opt.patch
1 diff -urN aa/allegro-4.1.14/configure.in allegro-4.1.14/configure.in
2 --- aa/allegro-4.1.14/configure.in      2004-04-27 13:53:02.000000000 +0200
3 +++ allegro-4.1.14/configure.in 2004-05-23 21:18:36.478313632 +0200
4 @@ -662,29 +662,7 @@
5  
6  dnl How to compile C and asm files.
7  if test -n "GCC"; then
8 -  if test "X$allegro_strict_warnings" = "Xyes"; then
9 -    WFLAGS="-Wall -W -Wstrict-prototypes -Wno-unused -Werror"
10 -  else
11 -    WFLAGS="-Wall -Wno-unused"
12 -  fi
13 -  if test "X$allegro_cv_processor_type" = "Xi386"; then
14 -    if test "$allegro_exclusive_optimizations" != none; then
15 -      TARGET_ARCH="-march=$allegro_exclusive_optimizations"
16 -    elif test "X$allegro_cv_support_i386_mtune" = "Xyes"; then
17 -      TARGET_ARCH="-mtune=$allegro_optimizations"
18 -    else
19 -      TARGET_ARCH="-mcpu=$allegro_optimizations"
20 -    fi
21 -  else
22 -    TARGET_ARCH=
23 -  fi
24 -  if test "X$allegro_cv_can_use_pipe" = "Xyes"; then
25 -    CFLAGS="$CFLAGS -pipe"
26 -  fi
27 -  dnl Allow to specify additional flags.
28 -  CFLAGS="$CFLAGS $XCFLAGS"
29 -  WFLAGS="$WFLAGS $WCFLAGS"
30 -  dnl In this order...
31 +  WFLAGS="-Wall -Wno-unused"
32    ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE"
33    if test "X$allegro_debug_with_fortify" = "Xyes"; then
34       ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY"
35 @@ -692,12 +670,8 @@
36    if test "X$allegro_debug_with_dmalloc" = "Xyes"; then
37       ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DDMALLOC"
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 +  CFLAGS="$CFLAGS $TARGET_ARCH"
46 +       ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS"
47    ALLEGRO_SFLAGS="-x assembler-with-cpp"
48    ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED"
49  else
This page took 0.025439 seconds and 3 git commands to generate.