shithub: openh264

Download patch

ref: ab3609c4c7f0f3648db9c4434293b2ca6de341ed
parent: fbc7519d904e22298f81dc55dceed4292467b224
author: Martin Storsjö <[email protected]>
date: Wed Feb 26 09:47:22 EST 2014

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.

--- a/build/platform-darwin.mk
+++ b/build/platform-darwin.mk
@@ -4,6 +4,7 @@
 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
@@ -10,5 +11,6 @@
 else
 ASMFLAGS += -f macho
 LDFLAGS += -read_only_relocs suppress
+endif
 endif