mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 02:53:06 +00:00
Make MACOSX_DEPLOYMENT_TARGET configurable
Also increase the default target to 10.5, since Xcode 10 can no longer target 10.3.
This commit is contained in:
committed by
Hisham Muhammad
parent
04ba8d686a
commit
58cf8c9449
2
Makefile
2
Makefile
@@ -12,7 +12,7 @@ OBJS= src/$T.o
|
|||||||
lib: src/lfs.so
|
lib: src/lfs.so
|
||||||
|
|
||||||
src/lfs.so: $(OBJS)
|
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
|
test: lib
|
||||||
LUA_CPATH=./src/?.so lua tests/test.lua
|
LUA_CPATH=./src/?.so lua tests/test.lua
|
||||||
|
|||||||
3
config
3
config
@@ -14,6 +14,9 @@ LUA_INC += -I/usr/include/lua5.1
|
|||||||
LIB_OPTION= -shared #for Linux
|
LIB_OPTION= -shared #for Linux
|
||||||
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
|
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
|
||||||
|
|
||||||
|
# Minimum runtime OS version on macOS
|
||||||
|
MACOSX_DEPLOYMENT_TARGET= 10.5
|
||||||
|
|
||||||
LIBNAME= $T.so.$V
|
LIBNAME= $T.so.$V
|
||||||
|
|
||||||
# Compilation directives
|
# Compilation directives
|
||||||
|
|||||||
Reference in New Issue
Block a user