Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Help the macOS linker understand that these are runtim...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/526610c51080
branches:  trunk
changeset: 435663:526610c51080
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Jul 11 14:20:05 2020 +0000

description:
Help the macOS linker understand that these are runtime-loaded modules.

diffstat:

 databases/lua-lsqlite3/Makefile |  4 +++-
 devel/lua-bit32/Makefile        |  4 +++-
 devel/lua-bit32/files/Makefile  |  4 ++--
 devel/lua-compat53/Makefile     |  4 +++-
 devel/lua-event/Makefile        |  4 +++-
 textproc/lua-lyaml/Makefile     |  4 +++-
 textproc/lua-utf8/Makefile      |  4 +++-
 7 files changed, 20 insertions(+), 8 deletions(-)

diffs (123 lines):

diff -r 59c4c3cdc606 -r 526610c51080 databases/lua-lsqlite3/Makefile
--- a/databases/lua-lsqlite3/Makefile   Sat Jul 11 13:59:48 2020 +0000
+++ b/databases/lua-lsqlite3/Makefile   Sat Jul 11 14:20:05 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/07/09 15:27:56 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/11 14:20:05 nia Exp $
 
 DISTNAME=      lsqlite3_fsl09y
 PKGNAME=       ${LUA_PKGPREFIX}-lsqlite3-0.9.5
@@ -11,6 +11,8 @@
 COMMENT=       Binding for Lua to the SQLite3 database library
 LICENSE=       mit
 
+LDFLAGS.Darwin+=       -undefined dynamic_lookup
+
 INSTALLATION_DIRS+=    ${LUA_CDIR} ${LUA_LDIR}
 INSTALLATION_DIRS+=    ${LUA_DOCDIR}/examples
 
diff -r 59c4c3cdc606 -r 526610c51080 devel/lua-bit32/Makefile
--- a/devel/lua-bit32/Makefile  Sat Jul 11 13:59:48 2020 +0000
+++ b/devel/lua-bit32/Makefile  Sat Jul 11 14:20:05 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/07/11 13:58:11 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/11 14:20:05 nia Exp $
 
 # Keep versioning in sync with the luarocks rockspec.
 DISTNAME=      lua-compat53-0.9
@@ -16,6 +16,8 @@
 CONFLICTS+=    ${LUA_PKGPREFIX}-bitlib-[0-9]*
 SUPERSEDES+=   ${LUA_PKGPREFIX}-bitlib-[0-9]*
 
+LDFLAGS.Darwin+=       -undefined dynamic_lookup
+
 INSTALLATION_DIRS+=    ${LUA_CDIR}
 
 pre-build:
diff -r 59c4c3cdc606 -r 526610c51080 devel/lua-bit32/files/Makefile
--- a/devel/lua-bit32/files/Makefile    Sat Jul 11 13:59:48 2020 +0000
+++ b/devel/lua-bit32/files/Makefile    Sat Jul 11 14:20:05 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/07/11 13:58:11 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/11 14:20:05 nia Exp $
 
 all: bit32.so
 
@@ -6,4 +6,4 @@
        $(CC) $(CFLAGS) -DLUA_COMPAT_BITLIB -fPIC -c $<
 
 bit32.so: lbitlib.o
-       $(CC) $(LDFLAGS) -shared -o $@ lbitlib.o
+       $(CC) $(LDFLAGS) -z undefs -shared -o $@ lbitlib.o
diff -r 59c4c3cdc606 -r 526610c51080 devel/lua-compat53/Makefile
--- a/devel/lua-compat53/Makefile       Sat Jul 11 13:59:48 2020 +0000
+++ b/devel/lua-compat53/Makefile       Sat Jul 11 14:20:05 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2020/07/11 13:48:49 nia Exp $
+# $NetBSD: Makefile,v 1.3 2020/07/11 14:20:06 nia Exp $
 
 DISTNAME=      lua-compat53-0.9
 PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua-//1}
@@ -14,6 +14,8 @@
 
 PLIST_SUBST+=  LUA_INCDIR=${LUA_INCDIR}
 
+LDFLAGS.Darwin+=       -undefined dynamic_lookup
+
 PRINT_PLIST_AWK+=      /^${LUA_INCDIR:S|/|\\/|g}/ \
                        { gsub(/${LUA_INCDIR:S|/|\\/|g}/, "$${LUA_INCDIR}") }
 
diff -r 59c4c3cdc606 -r 526610c51080 devel/lua-event/Makefile
--- a/devel/lua-event/Makefile  Sat Jul 11 13:59:48 2020 +0000
+++ b/devel/lua-event/Makefile  Sat Jul 11 14:20:05 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/07/11 12:37:25 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/11 14:20:06 nia Exp $
 
 DISTNAME=      luaevent-0.4.6
 PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1}
@@ -14,6 +14,8 @@
 
 BUILD_DIRS+=   src
 
+LDFLAGS.Darwin+=       -undefined dynamic_lookup
+
 INSTALLATION_DIRS+=    ${LUA_DOCDIR}
 INSTALLATION_DIRS+=    ${LUA_DOCDIR}/modules
 INSTALLATION_DIRS+=    ${LUA_CDIR}/luaevent
diff -r 59c4c3cdc606 -r 526610c51080 textproc/lua-lyaml/Makefile
--- a/textproc/lua-lyaml/Makefile       Sat Jul 11 13:59:48 2020 +0000
+++ b/textproc/lua-lyaml/Makefile       Sat Jul 11 14:20:05 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/07/09 21:30:17 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/11 14:20:06 nia Exp $
 
 DISTNAME=      lyaml-6.2.5
 PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME}
@@ -16,6 +16,8 @@
 
 MAKE_FLAGS+=   PKGVERSION=${PKGVERSION}
 
+LDFLAGS.Darwin+=       -undefined dynamic_lookup
+
 INSTALLATION_DIRS+=    ${LUA_DOCDIR}
 INSTALLATION_DIRS+=    ${LUA_CDIR}
 INSTALLATION_DIRS+=    ${LUA_LDIR}/lyaml
diff -r 59c4c3cdc606 -r 526610c51080 textproc/lua-utf8/Makefile
--- a/textproc/lua-utf8/Makefile        Sat Jul 11 13:59:48 2020 +0000
+++ b/textproc/lua-utf8/Makefile        Sat Jul 11 14:20:05 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/07/02 17:13:37 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/11 14:20:06 nia Exp $
 
 DISTNAME=      lua-utf8-0.1.2
 PKGNAME=       ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
@@ -13,6 +13,8 @@
 
 WRKSRC=                ${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}
 
+LDFLAGS.Darwin+=       -undefined dynamic_lookup
+
 INSTALLATION_DIRS+=    ${LUA_CDIR}
 
 pre-build:



Home | Main Index | Thread Index | Old Index