--- Makefile.rules.orig 2014-06-20 19:00:41 UTC +++ Makefile.rules @@ -281,8 +281,8 @@ endif CPP.Defines := ifeq ($(ENABLE_OPTIMIZED),1) BuildMode := Release - # Don't use -fomit-frame-pointer on Darwin or FreeBSD. - ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin Darwin DragonFly FreeBSD GNU/kFreeBSD)) + # Don't use -fomit-frame-pointer on Darwin, BSDSUniX or FreeBSD. + ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin Darwin DragonFly BSDSUniX FreeBSD GNU/kFreeBSD)) OmitFramePointer := -fomit-frame-pointer endif @@ -1356,7 +1356,7 @@ LD.Flags += -Wl,-exported_symbol,_main endif endif -ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux NetBSD FreeBSD GNU/kFreeBSD GNU)) +ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux NetBSD BSDSUniX FreeBSD GNU/kFreeBSD GNU)) ifneq ($(ARCH), Mips) LD.Flags += -Wl,--version-script=$(LLVM_SRC_ROOT)/autoconf/ExportMap.map endif