]> git.pld-linux.org Git - packages/allegro5.git/blame - allegro-opt.patch
- now there is alsa on sparc*
[packages/allegro5.git] / allegro-opt.patch
CommitLineData
5109ccb4 1diff -ruN allegro-4.1.11./configure.in allegro-4.1.11/configure.in
2--- allegro-4.1.11./configure.in 2003-06-30 01:27:00.000000000 +0200
3+++ allegro-4.1.11/configure.in 2003-08-25 00:23:10.000000000 +0200
4@@ -613,43 +613,20 @@
5 AC_CHECK_FUNCS(memcmp mkstemp stricmp strlwr strupr)
6
7 dnl Tweak header files for library build
8-CFLAGS="$CFLAGS -DALLEGRO_LIB_BUILD"
9+CFLAGS="$TARGET_ARCH -DALLEGRO_LIB_BUILD"
10
11 dnl How to compile C and asm files.
12 if test -n "GCC"; then
13- if test "X$allegro_strict_warnings" = "Xyes"; then
14- WFLAGS="-Wall -W -Wstrict-prototypes -Wno-unused -Werror"
15- else
16- WFLAGS="-Wall -Wno-unused"
17- fi
18- if test "$allegro_cv_support_asm" = i386; then
19- if test "$allegro_exclusive_optimizations" != none; then
20- TARGET_ARCH="-march=$allegro_exclusive_optimizations"
21- else
22- TARGET_ARCH="-mcpu=$allegro_optimizations"
23- fi
24- else
25- TARGET_ARCH=
26- fi
27- if test "X$allegro_cv_can_use_pipe" = "Xyes"; then
28- CFLAGS="$CFLAGS -pipe"
29- fi
30+ WFLAGS="-Wall -Wno-unused"
31+
32 if test "$allegro_cv_support_asm" != i386; then
33 CFLAGS="$CFLAGS -DALLEGRO_USE_C"
7d6ed33c 34 fi
5109ccb4 35- dnl Allow to specify additional flags.
36- CFLAGS="$CFLAGS $XCFLAGS"
37- WFLAGS="$WFLAGS $WCFLAGS"
38- dnl In this order...
39- ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE"
40+
41+ ALLEGRO_DEBUG_CFLAGS="-g $WFLAGS -DDEBUGMODE"
42 if test "X$allegro_debug_with_fortify" = "Xyes"; then
43 ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY"
7d6ed33c 44 fi
5109ccb4 45- ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
46- if test "X$allegro_cv_support_fomit_frame_pointer" = "Xyes"; then
47- CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math -fomit-frame-pointer $WFLAGS"
48- else
49- CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
50- fi
51+ ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS"
52 ALLEGRO_SFLAGS="-x assembler-with-cpp"
53 ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED"
54 else
This page took 0.097074 seconds and 4 git commands to generate.