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: Sat Jul 11 15:30:52 UTC 2020
Modified Files:
pkgsrc/lang/lua: module.mk
Log Message:
lua/module.mk: Avoid compiling Lua 5.3 modules with -ansi
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 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.9 pkgsrc/lang/lua/module.mk:1.10
--- pkgsrc/lang/lua/module.mk:1.9 Sat Jul 11 15:14:30 2020
+++ pkgsrc/lang/lua/module.mk Sat Jul 11 15:30:52 2020
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.9 2020/07/11 15:14:30 nia Exp $
+# $NetBSD: module.mk,v 1.10 2020/07/11 15:30:52 nia Exp $
#
# This Makefile fragment is intended to be included by packages that
# install Lua modules.
@@ -75,4 +75,12 @@ LDFLAGS.Cygwin+= -llua${LUA_VERSION_MAJO
LDFLAGS.Darwin+= -bundle -undefined dynamic_lookup
.endif
+.if ${_LUA_VERSION} != "51" && ${_LUA_VERSION} != "52"
+# Any Lua>=5.3 module using these flags is invalid,
+# since Lua 5.3 and newer require "long long".
+BUILDLINK_TRANSFORM+= opt:-ansi:-std=c99
+BUILDLINK_TRANSFORM+= opt:-std=c89:-std=c99
+BUILDLINK_TRANSFORM+= opt:-std=c90:-std=c99
+.endif
+
.endif # LUA_MODULE_MK
Home |
Main Index |
Thread Index |
Old Index