pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/lua For Lua modules, strip out the -shared compil...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3b35670ae81b
branches: trunk
changeset: 770672:3b35670ae81b
user: nia <nia%pkgsrc.org@localhost>
date: Mon Dec 06 18:54:32 2021 +0000
description:
For Lua modules, strip out the -shared compiler argument on Darwin.
diffstat:
lang/lua/module.mk | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r a714119b721a -r 3b35670ae81b lang/lua/module.mk
--- a/lang/lua/module.mk Mon Dec 06 16:36:15 2021 +0000
+++ b/lang/lua/module.mk Mon Dec 06 18:54:32 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.11 2020/07/11 15:33:51 nia Exp $
+# $NetBSD: module.mk,v 1.12 2021/12/06 18:54:32 nia Exp $
#
# This Makefile fragment is intended to be included by packages that
# install Lua modules.
@@ -71,8 +71,9 @@
LUA_LINKER_MAGIC?= yes
.if !empty(LUA_LINKER_MAGIC:M[yY][eE][sS])
-LDFLAGS.Cygwin+= -llua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
-LDFLAGS.Darwin+= -bundle -undefined dynamic_lookup
+BUILDLINK_TRANSFORM.Darwin+= rm:-shared
+LDFLAGS.Cygwin+= -llua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
+LDFLAGS.Darwin+= -bundle -undefined dynamic_lookup
.endif
.if ${_LUA_VERSION} != "51" && ${_LUA_VERSION} != "52"
Home |
Main Index |
Thread Index |
Old Index