pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/archivers/lua-zlib



Module Name:    pkgsrc
Committed By:   nia
Date:           Sat Jul 11 14:30:25 UTC 2020

Modified Files:
        pkgsrc/archivers/lua-zlib: Makefile

Log Message:
lua-zlib: attempt to fix build on darwin


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/archivers/lua-zlib/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/archivers/lua-zlib/Makefile
diff -u pkgsrc/archivers/lua-zlib/Makefile:1.3 pkgsrc/archivers/lua-zlib/Makefile:1.4
--- pkgsrc/archivers/lua-zlib/Makefile:1.3      Sun Jul  5 18:59:04 2020
+++ pkgsrc/archivers/lua-zlib/Makefile  Sat Jul 11 14:30:25 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2020/07/05 18:59:04 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2020/07/11 14:30:25 nia Exp $
 
 DISTNAME=      lua-zlib-1.2
 PKGNAME=       ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
@@ -17,7 +17,12 @@ BUILD_TARGET=        zlib.so
 MAKE_FLAGS+=   CC=${CC}
 MAKE_FLAGS+=   LD=${CC}
 MAKE_FLAGS+=   CFLAGS="${CFLAGS} -fPIC"
+
+.if ${OPSYS} == "Darwin"
+MAKE_FLAGS+=   LDFLAGS="${LDFLAGS} -shared -undefined dynamic_lookup"
+.else
 MAKE_FLAGS+=   LDFLAGS="${LDFLAGS} -shared"
+.endif
 
 INSTALLATION_DIRS+=    ${LUA_CDIR}
 



Home | Main Index | Thread Index | Old Index