OSX: Don't set a default MACOSX_DEPLOYMENT_TARGET.

This commit is contained in:
Mike Pall 2019-12-08 19:22:00 +01:00
parent eba586854b
commit 8961a92dd1
2 changed files with 3 additions and 3 deletions

View File

@ -212,8 +212,8 @@ You can add an extra prefix to the search paths by appending the
make PREFIX=/home/myself/lj2 make PREFIX=/home/myself/lj2
</pre> </pre>
<p> <p>
Note for OSX: if the <tt>MACOSX_DEPLOYMENT_TARGET</tt> environment Note for OSX: you must set the <tt>MACOSX_DEPLOYMENT_TARGET</tt>
variable is not set, then it's forced to <tt>10.4</tt>. environment variable to a value supported by your toolchain.
</p> </p>
<h3>Installing LuaJIT</h3> <h3>Installing LuaJIT</h3>
<p> <p>

View File

@ -304,7 +304,7 @@ ifeq (,$(shell $(TARGET_CC) -o /dev/null -c -x c /dev/null -fno-stack-protector
endif endif
ifeq (Darwin,$(TARGET_SYS)) ifeq (Darwin,$(TARGET_SYS))
ifeq (,$(MACOSX_DEPLOYMENT_TARGET)) ifeq (,$(MACOSX_DEPLOYMENT_TARGET))
export MACOSX_DEPLOYMENT_TARGET=10.4 $(error missing: export MACOSX_DEPLOYMENT_TARGET=XX.YY)
endif endif
TARGET_STRIP+= -x TARGET_STRIP+= -x
TARGET_XSHLDFLAGS= -dynamiclib -single_module -undefined dynamic_lookup -fPIC TARGET_XSHLDFLAGS= -dynamiclib -single_module -undefined dynamic_lookup -fPIC