]> git.pld-linux.org Git - packages/allegro5.git/blob - allegro-opt.patch
dd6032c73335841ac7fdb5bd6cbbc46dd6307aa8
[packages/allegro5.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 @@ -649,39 +649,13 @@
4  
5  dnl How to compile C and asm files.
6  if test -n "GCC"; then
7 -  if test "X$allegro_strict_warnings" = "Xyes"; then
8 -    WFLAGS="-Wall -W -Wstrict-prototypes -Wno-unused -Werror"
9 -  else
10 -    WFLAGS="-Wall -Wno-unused"
11 -  fi
12 -  if test "X$allegro_cv_processor_type" = "Xi386"; then
13 -    if test "$allegro_exclusive_optimizations" != none; then
14 -      TARGET_ARCH="-march=$allegro_exclusive_optimizations"
15 -    elif test "X$allegro_cv_support_i386_mtune" = "Xyes"; then
16 -      TARGET_ARCH="-mtune=$allegro_optimizations"
17 -    else
18 -      TARGET_ARCH="-mcpu=$allegro_optimizations"
19 -    fi
20 -  else
21 -    TARGET_ARCH=
22 -  fi
23 -  if test "X$allegro_cv_can_use_pipe" = "Xyes"; then
24 -    CFLAGS="$CFLAGS -pipe"
25 -  fi
26 -  dnl Allow to specify additional flags.
27 -  CFLAGS="$CFLAGS $XCFLAGS"
28 -  WFLAGS="$WFLAGS $WCFLAGS"
29 -  dnl In this order...
30 +  WFLAGS="-Wall -Wno-unused"
31    ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE"
32    if test "X$allegro_debug_with_fortify" = "Xyes"; then
33       ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY"
34    fi
35 -  ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
36 -  if test "X$allegro_cv_support_fomit_frame_pointer" = "Xyes"; then
37 -    CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math -fomit-frame-pointer $WFLAGS"
38 -  else
39 -    CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
40 -  fi
41 +  CFLAGS="$CFLAGS $TARGET_ARCH"
42 +  ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS"
43    ALLEGRO_SFLAGS="-x assembler-with-cpp"
44    ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED"
45  else
This page took 0.026018 seconds and 2 git commands to generate.