From 5b689baf18ca5e1feec1fc129d8af19f9c987c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 13 Dec 2016 20:58:12 +0100 Subject: build: fix Cygwin build The simple method lpeg uses to create a shared library does not seem to work in Cygwin. --- GNUmakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index a225931..969a25f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -130,7 +130,8 @@ dependency/build/liblpeg-extract: dependency/sources/$(LIBLPEG).tar.gz | depende touch $@ dependency/build/liblpeg-build: dependency/build/liblpeg-extract dependency/build/liblua-extract - cd $(dir $<)/$(LIBLPEG) && $(MAKE) LUADIR="../$(LIBLUA)/src" + # creating a shared object fails in Cygwin, we do not need it thus ignore the error + cd $(dir $<)/$(LIBLPEG) && $(MAKE) LUADIR="../$(LIBLUA)/src" || true cd $(dir $<)/$(LIBLPEG) && ar rcu liblpeg.a lpvm.o lpcap.o lptree.o lpcode.o lpprint.o && ranlib liblpeg.a touch $@ -- cgit v1.2.3