Don't add x86 assembly specific options on darwin if building for other archs

This avoids warnings about using the -read_only_relocs suppress
if building for other architectures than x86.
This commit is contained in:
Martin Storsjö 2014-02-26 14:47:22 +02:00
parent fbc7519d90
commit ab3609c4c7

View File

@ -4,6 +4,7 @@ SHAREDLIBSUFFIX = dylib
SHARED = -dynamiclib
CFLAGS += -Werror -fPIC -DMACOS -DMT_ENABLED -MMD -MP
LDFLAGS += -lpthread
ifeq ($(ASM_ARCH), x86)
ASMFLAGS += --prefix _ -DNOPREFIX
ifeq ($(ENABLE64BIT), Yes)
ASMFLAGS += -f macho64
@ -11,4 +12,5 @@ else
ASMFLAGS += -f macho
LDFLAGS += -read_only_relocs suppress
endif
endif