ref: 6f803e16f53d5b31be15508001e326469824ec2f
parent: d767e216a8312907dd8c03f12f3e4741b603c852
author: Martin Storsjö <[email protected]>
date: Fri Feb 28 21:03:13 EST 2014
Only set x86 ASMFLAGS if building x86 assembly
--- a/build/platform-freebsd.mk
+++ b/build/platform-freebsd.mk
@@ -2,10 +2,12 @@
SHAREDLIBSUFFIX = so
CFLAGS += -fPIC -DMT_ENABLED
LDFLAGS += -lpthread
+ifeq ($(ASM_ARCH), x86)
ASMFLAGS += -DNOPREFIX
ifeq ($(ENABLE64BIT), Yes)
ASMFLAGS += -f elf64
else
ASMFLAGS += -f elf
+endif
endif
--- a/build/platform-linux.mk
+++ b/build/platform-linux.mk
@@ -2,10 +2,12 @@
SHAREDLIBSUFFIX = so
CFLAGS += -Werror -fPIC -DLINUX -DMT_ENABLED -MMD -MP
LDFLAGS += -lpthread
+ifeq ($(ASM_ARCH), x86)
ASMFLAGS += -DNOPREFIX
ifeq ($(ENABLE64BIT), Yes)
ASMFLAGS += -f elf64
else
ASMFLAGS += -f elf32
+endif
endif