summaryrefslogtreecommitdiff
path: root/package/mongrel2/patches/patch-tools_m2sh_Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-04-27 19:38:38 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-04-27 19:38:47 +0200
commit05f4eea02bd1aa96c41d32c75981d78522734911 (patch)
treea9fa66255e88adb3729f7487607db3036e4b8481 /package/mongrel2/patches/patch-tools_m2sh_Makefile
parent3b6024bae3e8031acd79979a972b0d3412e9403f (diff)
mongrel2: update to 1.11.0
Diffstat (limited to 'package/mongrel2/patches/patch-tools_m2sh_Makefile')
-rw-r--r--package/mongrel2/patches/patch-tools_m2sh_Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/mongrel2/patches/patch-tools_m2sh_Makefile b/package/mongrel2/patches/patch-tools_m2sh_Makefile
new file mode 100644
index 000000000..c6296496a
--- /dev/null
+++ b/package/mongrel2/patches/patch-tools_m2sh_Makefile
@@ -0,0 +1,31 @@
+--- mongrel2-v1.11.0.orig/tools/m2sh/Makefile 2015-12-31 10:25:18.000000000 +0100
++++ mongrel2-v1.11.0/tools/m2sh/Makefile 2016-04-25 20:14:36.744476585 +0200
+@@ -1,7 +1,8 @@
+-CFLAGS=-DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS)
++CFLAGS?=
++CFLAGS+=-DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS)
+ LIBS=-lzmq -lsqlite3 ../../build/libm2.a $(OPTLIBS)
+
+-PREFIX?=/usr/local
++PREFIX?=/usr
+ SOURCES=$(wildcard src/*.c src/**/*.c)
+ OBJECTS=$(patsubst %.c,%.o,${SOURCES})
+ TEST_SRC=$(wildcard tests/*.c)
+@@ -9,7 +10,7 @@ TESTS=$(patsubst %.c,%,${TEST_SRC})
+ LIB_SRC=$(filter-out src/m2sh.c,${SOURCES})
+ LIB_OBJ=$(filter-out src/m2sh.o,${OBJECTS})
+
+-all: ../lemon/lemon tests build/m2sh
++all: ../lemon/lemon build/m2sh
+
+ dev: CFLAGS=-g -Wall -Wextra -Isrc -I../../src $(OPTFLAGS)
+ dev: all
+@@ -27,7 +28,7 @@ build/m2sh: ../lemon/lemon ../../build/l
+ $(CC) $(CFLAGS) -o build/m2sh ${OBJECTS} ../../build/libm2.a $(LIBS)
+
+ ../lemon/lemon: ../lemon/lemon.c
+- $(CC) -O2 ../lemon/lemon.c -o ../lemon/lemon
++ $(CC) $(CFLAGS) ../lemon/lemon.c -o ../lemon/lemon
+
+ tests: build/libm2sh.a ${TESTS}
+ sh ./tests/runtests.sh