pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/lua



Module Name:    pkgsrc
Committed By:   nia
Date:           Mon Dec  6 18:54:32 UTC 2021

Modified Files:
        pkgsrc/lang/lua: module.mk

Log Message:
For Lua modules, strip out the -shared compiler argument on Darwin.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/lang/lua/module.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/lua/module.mk
diff -u pkgsrc/lang/lua/module.mk:1.11 pkgsrc/lang/lua/module.mk:1.12
--- pkgsrc/lang/lua/module.mk:1.11      Sat Jul 11 15:33:51 2020
+++ pkgsrc/lang/lua/module.mk   Mon Dec  6 18:54:32 2021
@@ -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 @@ PLIST_SUBST+=         LUA_EXAMPLESDIR=${LUA_EXA
 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