pkgsrc/devel/lua-rings/patches/patch-config
nia 89b60e5fef devel: Add lua-rings
Rings is a library which provides a way to create new Lua states from within
Lua. It also offers a simple way to communicate between the creator and the
created states.
2020-07-10 11:18:01 +00:00

16 lines
607 B
Text

$NetBSD: patch-config,v 1.1 2020/07/10 11:18:01 nia Exp $
Make sure WARN gets used properly.
--- config.orig 2013-09-24 13:47:05.000000000 +0000
+++ config
@@ -22,7 +22,7 @@ LIBNAME ?= $T.so.$V
# Compilation directives
-WARN ?= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -Wpointer-arith -pedantic
+WARN += -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -Wpointer-arith -pedantic
INCS ?= -I$(LUA_INC)
-CFLAGS ?= $(WARN) $(INCS)
+CFLAGS += $(WARN) $(INCS)
CC ?= gcc