d723ad2774
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.
16 lines
323 B
Makefile
16 lines
323 B
Makefile
include build/platform-arch.mk
|
|
SHAREDLIBSUFFIX = dylib
|
|
SHARED = -dynamiclib
|
|
CFLAGS += -Werror -fPIC -DMACOS -DMT_ENABLED -MMD -MP
|
|
LDFLAGS += -lpthread
|
|
ifeq ($(ASM_ARCH), x86)
|
|
ASMFLAGS += -DPREFIX
|
|
ifeq ($(ENABLE64BIT), Yes)
|
|
ASMFLAGS += -f macho64
|
|
else
|
|
ASMFLAGS += -f macho
|
|
LDFLAGS += -read_only_relocs suppress
|
|
endif
|
|
endif
|
|
|