1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-30 07:09:41 +02:00
openwrt-packages/ase/patches/010-makefile.patch

41 lines
1.2 KiB
Diff
Raw Normal View History

Index: ase-0.8.2/makefile.gcc
===================================================================
--- ase-0.8.2.orig/makefile.gcc 2011-06-13 13:08:22.000000000 +0200
+++ ase-0.8.2/makefile.gcc 2011-06-21 16:27:06.000000000 +0200
@@ -21,15 +21,16 @@
LFLAGS += $(THIRD_PARTY_LIBS)
ifdef PROFILE
- CFLAGS += -pg -O3 -DNDEBUG
- LFLAGS += -pg -O3 -DNDEBUG
+ CFLAGS += -pg -DNDEBUG
+ LFLAGS += -pg -DNDEBUG
else
ifdef DEBUGMODE
CFLAGS += -g3 -DDEBUGMODE
LFLAGS += -g3
else
- CFLAGS += -s -O3 -DNDEBUG
- LFLAGS += -s -O3 -DNDEBUG
+ # order of include dirs important, need to add BUILD_CFLAGS after -I above
+ CFLAGS += $(BUILD_CFLAGS)
+ LFLAGS +=
endif
endif
Index: ase-0.8.2/makefile.linux
===================================================================
--- ase-0.8.2.orig/makefile.linux 2011-06-13 13:08:22.000000000 +0200
+++ ase-0.8.2/makefile.linux 2011-06-13 13:08:40.000000000 +0200
@@ -18,8 +18,8 @@
CFLAGS = `allegro-config --cflags debug`
LFLAGS = `allegro-config --libs debug`
else
-CFLAGS = `allegro-config --cflags`
-LFLAGS = `allegro-config --libs`
+CFLAGS =
+LFLAGS = $(LDFLAGS)
endif
######################################################################