Fix omission of flag for minimum OSX version
This commit fixes a regression bug introduced with commit 48c4127
for v0.4.1. If minimum OSX version is not specified the compiler will
assume the version of the build machine and the build may not be
fully compatible with older OSX versions.
This commit is contained in:
parent
9dd4f36886
commit
ece8e6b8b7
1 changed files with 5 additions and 2 deletions
|
|
@ -574,11 +574,14 @@ ifeq ($(system), Darwin)
|
|||
ifeq ($(target.arch), i386)
|
||||
cxx.flags := -fcheck-new
|
||||
arch := ppc i386 x86_64
|
||||
version.flag ?= -mmacosx-version-min=10.4
|
||||
version.flag = -mmacosx-version-min=10.4
|
||||
endif
|
||||
ifeq ($(target.arch), x86_64)
|
||||
arch := i386 x86_64
|
||||
version.flag ?= -mmacosx-version-min=10.5
|
||||
version.flag = -mmacosx-version-min=10.5
|
||||
endif
|
||||
ifneq ($(filter -mmacosx-version-min=%, $(cflags)),)
|
||||
version.flag := $(filter -mmacosx-version-min=%, $(cflags))
|
||||
endif
|
||||
arch.c.flags := $(addprefix -arch , $(arch)) $(version.flag)
|
||||
arch.ld.flags := $(arch.c.flags)
|
||||
|
|
|
|||
Loading…
Reference in a new issue