Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lua-posix lua-posix: Attempt to fix Darwin build



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e328b7c3d9ec
branches:  trunk
changeset: 435667:e328b7c3d9ec
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Jul 11 14:34:22 2020 +0000

description:
lua-posix: Attempt to fix Darwin build

diffstat:

 devel/lua-posix/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 96aad20c222a -r e328b7c3d9ec devel/lua-posix/Makefile
--- a/devel/lua-posix/Makefile  Sat Jul 11 14:33:00 2020 +0000
+++ b/devel/lua-posix/Makefile  Sat Jul 11 14:34:22 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2020/07/11 14:33:00 nia Exp $
+# $NetBSD: Makefile,v 1.20 2020/07/11 14:34:22 nia Exp $
 
 DISTNAME=      luaposix-34.1.1
 PKGNAME=       ${DISTNAME:S/lua/${LUA_PKGPREFIX}-/}
@@ -24,7 +24,13 @@
 DEPENDS+=      lua51-bit32-[0-9]*:../../devel/lua-bit32
 .endif
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+LIBFLAG+=      ${LDFLAGS} -shared -fPIC -undefined dynamic_lookup
+.else
 LIBFLAG+=      ${LDFLAGS} -shared -fPIC
+.endif
 
 do-build:
        cd ${WRKSRC} && \



Home | Main Index | Thread Index | Old Index