]> git.pld-linux.org Git - packages/allegro.git/blame - allegro-opt.patch
- start update to 4.4.1.1 (4.4 branch)
[packages/allegro.git] / allegro-opt.patch
CommitLineData
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
6c061637 3@@ -720,38 +720,7 @@
5109ccb4 4
5 dnl How to compile C and asm files.
6c061637 6 if test -n "$GCC"; then
5109ccb4 7- if test "X$allegro_strict_warnings" = "Xyes"; then
6c061637 8- WFLAGS="-Wall -W -Wstrict-prototypes -Wno-unused-parameter -Werror"
5109ccb4 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
6c061637 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
5109ccb4 32- else
33- TARGET_ARCH=
34- fi
5109ccb4 35- dnl Allow to specify additional flags.
36- CFLAGS="$CFLAGS $XCFLAGS"
37- WFLAGS="$WFLAGS $WCFLAGS"
38- dnl In this order...
e5681362 39+ WFLAGS="-Wall -Wno-unused"
2bccd21e 40 ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE"
5109ccb4 41 if test "X$allegro_debug_with_fortify" = "Xyes"; then
42 ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY"
6c061637 43@@ -759,12 +728,8 @@
9d03ba25 44 if test "X$allegro_debug_with_dmalloc" = "Xyes"; then
45 ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DDMALLOC"
7d6ed33c 46 fi
5109ccb4 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
2bccd21e 53+ CFLAGS="$CFLAGS $TARGET_ARCH"
6c061637 54+ ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS"
5109ccb4 55 ALLEGRO_SFLAGS="-x assembler-with-cpp"
56 ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED"
57 else
This page took 0.029365 seconds and 4 git commands to generate.