Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/lua-zlib lua-zlib: attempt to fix build on d...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6a2140c5f3a0
branches: trunk
changeset: 435664:6a2140c5f3a0
user: nia <nia%pkgsrc.org@localhost>
date: Sat Jul 11 14:30:25 2020 +0000
description:
lua-zlib: attempt to fix build on darwin
diffstat:
archivers/lua-zlib/Makefile | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 526610c51080 -r 6a2140c5f3a0 archivers/lua-zlib/Makefile
--- a/archivers/lua-zlib/Makefile Sat Jul 11 14:20:05 2020 +0000
+++ b/archivers/lua-zlib/Makefile Sat Jul 11 14:30:25 2020 +0000
@@ -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 @@
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