packages/libs/libowfat/patches/020-cflags.patch
Rosen Penev bee8b923e7 libowfat: try to fix compilation under ARC
CFLAGS are not being passed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-06-20 18:20:04 -06:00

13 lines
383 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -37,8 +37,8 @@ OPT_PLUS=-O3 $(NATIVE)
DEFINE=-D_REENTRANT
-CFLAGS=-pipe $(WARN) $(DEFINE) $(OPT_REG)
-CFLAGS_OPT=-pipe $(WARN) $(DEFINE) $(OPT_PLUS)
+CFLAGS+=-pipe $(WARN) $(DEFINE) $(OPT_REG)
+CFLAGS_OPT+=-pipe $(WARN) $(DEFINE) $(OPT_PLUS)
#CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall