From bee8b923e719ce96bf209a365bc4348416b87235 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 8 Jun 2022 19:02:40 -0700 Subject: [PATCH] libowfat: try to fix compilation under ARC CFLAGS are not being passed. Signed-off-by: Rosen Penev --- libs/libowfat/Makefile | 2 +- libs/libowfat/patches/020-cflags.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 libs/libowfat/patches/020-cflags.patch diff --git a/libs/libowfat/Makefile b/libs/libowfat/Makefile index 8e57a5547..325822ae1 100644 --- a/libs/libowfat/Makefile +++ b/libs/libowfat/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libowfat PKG_VERSION:=0.32 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://www.fefe.de/libowfat diff --git a/libs/libowfat/patches/020-cflags.patch b/libs/libowfat/patches/020-cflags.patch new file mode 100644 index 000000000..78ff58324 --- /dev/null +++ b/libs/libowfat/patches/020-cflags.patch @@ -0,0 +1,13 @@ +--- 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 +