From 2e800b4555abcc93c63e9ade0194c58b5775ecb6 Mon Sep 17 00:00:00 2001 From: Gordon Gremme Date: Mon, 6 Jan 2020 00:00:37 +0000 Subject: [PATCH] improve build system --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 374d8bc..a18811b 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ ifneq ($(fpic),no) endif # ...while those starting with GTH_ are for internal purposes only -GTH_CFLAGS:=-g -Wall -Wunused-parameter -pipe $(FPIC) -Wpointer-arith -fno-stack-protector -Wno-error=misleading-indentation -Wno-unknown-pragmas +GTH_CFLAGS:=-g -Wall -Wunused-parameter -pipe $(FPIC) -Wpointer-arith -fno-stack-protector -Wno-unknown-pragmas # mkvtree needs -DWITHLCP # rnv needs -DUNISTD_H="" -DEXPAT_H="" -DRNV_VERSION="\"1.7.8\"" EXT_FLAGS:= -DWITHLCP -DUNISTD_H="" -DEXPAT_H="" \ @@ -79,6 +79,12 @@ ifeq ($(wrapmemcpy),yes) GTH_LDFLAGS+=-Wl,--wrap=memcpy endif +ifneq ($(SYSTEM),Darwin) +ifneq ($(MACHINE),ARMv6_hf) +GTH_CFLAGS+=-Wno-error=misleading-indentation +endif +endif + # system specific stuff (concerning 64bit compilation) ifeq ($(SYSTEM),Darwin) ifeq ($(64bit),yes)