packages/utils/ap51-flash/patches/001-flags.patch

13 lines
473 B
Diff
Raw Normal View History

--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,8 @@ AR = $(CROSS)ar
STRIP = $(CROSS)strip
OBJCOPY = $(CROSS)objcopy
WINDRES = $(CROSS)windres
-CFLAGS = -Wall -ggdb -I. -IWpdPack/Include/ -fno-strict-aliasing -fpack-struct -Os
+OFLAGS = -Os -ggdb
+CFLAGS = -Wall -I. -IWpdPack/Include/ -fno-strict-aliasing -fpack-struct $(OFLAGS)
LIB_OBJS= ap51-flash.o uip.o uip_arp.o timer.o clock-arch.o psock.o packet.o
OBJS = $(LIB_OBJS) main.o
AP51_RC = ap51-flash-res