packages/utils/stm32flash/patches/001-cflags_override.patch
florian 80f004125d stm32flash: make sure we pass our CFLAGS
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@39823 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-08 00:57:34 +00:00

31 lines
563 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ export AR
all:
$(MAKE) -C parsers
- $(CC) -g -o stm32flash -I./ \
+ $(CC) $(LDFLAGS) -o stm32flash -I./ \
main.c \
utils.c \
stm32.c \
@@ -13,7 +13,7 @@ all:
serial_platform.c \
parsers/parsers.a \
stm32/stmreset_binary.c \
- -Wall
+ $(CFLAGS)
clean:
$(MAKE) -C parsers clean
--- a/parsers/Makefile
+++ b/parsers/Makefile
@@ -1,6 +1,6 @@
all:
- $(CC) -g -Wall -c -I../ binary.c hex.c
+ $(CC) $(CFLAGS) -Wall -c -I../ binary.c hex.c
$(AR) r parsers.a binary.o hex.o
clean: