ff7bc5e929
Update provided by Jonathan Buschmann in PR pkg/53787. I added some pkgconfig invocations, because otherwise it was linking to lua without the RPATH to liblua. Added a test target. Version 1.7.0 [15/Sep/2017] symlinkattributes function now provides 'target' field, containing name of the file that the symlink points to. attributes, symlinkattributes, touch, mkdir, and rmdir functions now return system-dependent error code as the third value on error. Fixed detection of closed files for Lua 5.2+ in setmode, lock, and unlock functions. Fixed various compiler warnings. s: ----------------------------------------------------------------------
16 lines
555 B
Text
16 lines
555 B
Text
$NetBSD: patch-Makefile,v 1.1 2019/05/28 20:43:04 maya Exp $
|
|
|
|
- Remove MACOSX_DEPLOYMENT_TARGET as it will give problem on newer macOS
|
|
and also targeting/building for current macOS version is enough
|
|
|
|
--- Makefile.orig 2017-09-15 23:07:33.000000000 +0000
|
|
+++ 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)
|
|
+ $(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS)
|
|
|
|
test: lib
|
|
LUA_CPATH=./src/?.so lua tests/test.lua
|