]>
Commit | Line | Data |
---|---|---|
34e89f8e JB |
1 | --- aa/allegro-4.1.15/configure.in 2004-04-27 13:53:02.000000000 +0200 |
2 | +++ allegro-4.1.15/configure.in 2004-05-23 21:18:36.478313632 +0200 | |
3 | @@ -668,26 +662,7 @@ | |
5109ccb4 | 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 | |
e5681362 | 12 | - if test "X$allegro_cv_processor_type" = "Xi386"; then |
5109ccb4 | 13 | - if test "$allegro_exclusive_optimizations" != none; then |
14 | - TARGET_ARCH="-march=$allegro_exclusive_optimizations" | |
f5b1a240 | 15 | - elif test "X$allegro_cv_support_i386_mtune" = "Xyes"; then |
16 | - TARGET_ARCH="-mtune=$allegro_optimizations" | |
5109ccb4 | 17 | - else |
18 | - TARGET_ARCH="-mcpu=$allegro_optimizations" | |
19 | - fi | |
20 | - else | |
21 | - TARGET_ARCH= | |
22 | - fi | |
5109ccb4 | 23 | - dnl Allow to specify additional flags. |
24 | - CFLAGS="$CFLAGS $XCFLAGS" | |
25 | - WFLAGS="$WFLAGS $WCFLAGS" | |
26 | - dnl In this order... | |
e5681362 | 27 | + WFLAGS="-Wall -Wno-unused" |
2bccd21e | 28 | ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE" |
5109ccb4 | 29 | if test "X$allegro_debug_with_fortify" = "Xyes"; then |
30 | ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY" | |
9d03ba25 | 31 | @@ -692,12 +670,8 @@ |
32 | if test "X$allegro_debug_with_dmalloc" = "Xyes"; then | |
33 | ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DDMALLOC" | |
7d6ed33c | 34 | fi |
5109ccb4 | 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 | |
2bccd21e | 41 | + CFLAGS="$CFLAGS $TARGET_ARCH" |
9d03ba25 | 42 | + ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS" |
5109ccb4 | 43 | ALLEGRO_SFLAGS="-x assembler-with-cpp" |
44 | ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED" | |
45 | else |