Annotation of pkgsrc/textproc/lua-stringy/patches/patch-stringy_Makefile, revision 1.2

1.2     ! nia         1: $NetBSD: patch-stringy_Makefile,v 1.1 2020/07/08 11:54:53 nia Exp $
1.1       nia         2: 
1.2     ! nia         3: - Append CFLAGS. Uses for loop initial declarations, c89 default
        !             4:   is unacceptable.
1.1       nia         5: - Use LDFLAGS when linking.
                      6: - Don't try to run tests.
                      7: 
                      8: --- stringy/Makefile.orig      2019-03-22 19:12:17.000000000 +0000
                      9: +++ stringy/Makefile
                     10: @@ -2,7 +2,7 @@ LUA ?= lua5.1
                     11:  LUA_PC ?= lua5.1
                     12:  LUA_CFLAGS = $(shell pkg-config $(LUA_PC) --cflags)
                     13:  
                     14: -CFLAGS ?= -O3 -Wall -Werror
1.2     ! nia        15: +CFLAGS += -std=c99 -Wall
1.1       nia        16:  
                     17:  all: stringy.so
                     18:  
                     19: @@ -12,8 +12,7 @@ all: stringy.so
                     20:  stringy.o: fastsearch.h
                     21:  
                     22:  stringy.so: stringy.o stringy_test.lua
                     23: -      $(CC) -shared stringy.o -o $@
                     24: -      $(LUA) stringy_test.lua
                     25: +      $(CC) $(LDFLAGS) -shared stringy.o -o $@
                     26:  
                     27:  clean:
                     28:        rm -f stringy.so stringy.o *.rock

CVSweb <webmaster@jp.NetBSD.org>