]>
Commit | Line | Data |
---|---|---|
328fc681 | 1 | --- allegro-4.9.3/configure.in~ 2008-05-12 13:00:38.307993655 +0200 |
2 | +++ allegro-4.9.3/configure.in 2008-05-12 13:13:44.638144481 +0200 | |
3 | @@ -815,38 +815,7 @@ | |
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-parameter -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 | - elif test "X$allegro_cv_processor_type" = "Xamd64"; then | |
21 | - dnl Change default pentium->athlon64 | |
22 | - if test "X$allegro_optimizations" = "Xpentium"; then | |
23 | - allegro_optimizations="k8" | |
24 | - fi | |
25 | - if test "$allegro_exclusive_optimizations" != none; then | |
26 | - TARGET_ARCH="-march=$allegro_exclusive_optimizations" | |
27 | - elif test "X$allegro_cv_support_amd64_mtune" = "Xyes"; then | |
28 | - TARGET_ARCH="-mtune=$allegro_optimizations" | |
29 | - else | |
30 | - TARGET_ARCH="-mcpu=$allegro_optimizations" | |
31 | - fi | |
32 | - else | |
33 | - TARGET_ARCH= | |
34 | - fi | |
35 | - dnl Allow to specify additional flags. | |
36 | - CFLAGS="$CFLAGS $XCFLAGS" | |
37 | - WFLAGS="$WFLAGS $WCFLAGS" | |
38 | - dnl In this order... | |
39 | + WFLAGS="-Wall -Wno-unused" | |
40 | ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE" | |
41 | if test "X$allegro_debug_with_fortify" = "Xyes"; then | |
42 | ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY" | |
43 | @@ -854,12 +823,8 @@ | |
44 | if test "X$allegro_debug_with_dmalloc" = "Xyes"; then | |
45 | ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DDMALLOC" | |
46 | fi | |
47 | - ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS" | |
48 | - if test "X$allegro_cv_support_fomit_frame_pointer" = "Xyes"; then | |
49 | - CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math -fomit-frame-pointer $WFLAGS" | |
50 | - else | |
51 | - CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS" | |
52 | - fi | |
53 | + CFLAGS="$CFLAGS $TARGET_ARCH" | |
54 | + ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS" | |
55 | ALLEGRO_SFLAGS="-x assembler-with-cpp" | |
56 | ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED" | |
57 | else |