Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keplerproject/luafilesystem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Root <jmr@macports.org>2019-05-21 00:42:32 +0300
committerHisham Muhammad <hisham@gobolinux.org>2020-04-21 03:36:11 +0300
commit58cf8c9449f9e7764a31f43bc70a36fbbcd58bc8 (patch)
tree29c36e23444ad3dafad00424b2b8d36eca1419b7
parent04ba8d686ab0e6ee7daaea092800ea44fcef40b5 (diff)
Make MACOSX_DEPLOYMENT_TARGET configurable
Also increase the default target to 10.5, since Xcode 10 can no longer target 10.3.
-rw-r--r--Makefile2
-rw-r--r--config3
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dfc1a8a..a7312a4 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ OBJS= src/$T.o
lib: src/lfs.so
src/lfs.so: $(OBJS)
- MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; $(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS)
+ MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET); export MACOSX_DEPLOYMENT_TARGET; $(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS)
test: lib
LUA_CPATH=./src/?.so lua tests/test.lua
diff --git a/config b/config
index 2fc9a78..4486599 100644
--- a/config
+++ b/config
@@ -14,6 +14,9 @@ LUA_INC += -I/usr/include/lua5.1
LIB_OPTION= -shared #for Linux
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
+# Minimum runtime OS version on macOS
+MACOSX_DEPLOYMENT_TARGET= 10.5
+
LIBNAME= $T.so.$V
# Compilation directives