shithub: openh264

Download patch

ref: d723ad27743e76413bc77a34137e23c0851ee4ec
parent: e654bf6b7fb977b4708cf78ef584b39b821e9881
author: Martin Storsjö <[email protected]>
date: Sat Mar 15 08:47:57 EDT 2014

Use -DPREFIX instead of --prefix _ on OS X

The --prefix parameter differs between yasm and nasm; nasm
requires --prefix _ while yasm requires --prefix=_. Using the
define instead (as on windows) allows easier switching between
the two otherwise mostly compatible assemblers.

This fixes building with yasm on OS X in 32 bit mode. For 64 bit,
a few more tweaks are still required.

--- a/build/platform-darwin.mk
+++ b/build/platform-darwin.mk
@@ -4,7 +4,7 @@
 CFLAGS += -Werror -fPIC -DMACOS -DMT_ENABLED -MMD -MP
 LDFLAGS += -lpthread
 ifeq ($(ASM_ARCH), x86)
-ASMFLAGS += --prefix _
+ASMFLAGS += -DPREFIX
 ifeq ($(ENABLE64BIT), Yes)
 ASMFLAGS += -f macho64
 else