Received: by mail.netbsd.org (Postfix, from userid 605) id 1CB5A84DD4; Sat, 11 Jul 2020 14:30:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 99E0784DB5 for ; Sat, 11 Jul 2020 14:30:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id ehvlmJDJKn8d for ; Sat, 11 Jul 2020 14:30:26 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 00BC584D04 for ; Sat, 11 Jul 2020 14:30:25 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id E88A5FB28; Sat, 11 Jul 2020 14:30:25 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1594477825190020" MIME-Version: 1.0 Date: Sat, 11 Jul 2020 14:30:25 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/archivers/lua-zlib To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20200711143025.E88A5FB28@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1594477825190020 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1594477825190020 Content-Disposition: inline Content-Length: 801 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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} --_----------=_1594477825190020--