From e3fce5095bbf6af2112ac249bf85cea35864cbd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 19 Feb 2014 21:14:06 +0200 Subject: [PATCH] Explicitly allow read-only relocations when building on OS X in 32 bit mode This fixes building libwels.dylib, since the assembly code isn't position independent. --- build/platform-darwin.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/build/platform-darwin.mk b/build/platform-darwin.mk index 96ab8e41..05f527bf 100644 --- a/build/platform-darwin.mk +++ b/build/platform-darwin.mk @@ -8,5 +8,6 @@ ifeq ($(ENABLE64BIT), Yes) ASMFLAGS += -f macho64 else ASMFLAGS += -f macho +LDFLAGS += -read_only_relocs suppress endif