wrk: Fix builds

Patched Makefile to also include
2d433a9b43.
The patch is available in 4.2.0. I'll try upgrading wrk after OpenSSL 3
rebuild
This commit is contained in:
Yaksh Bariya 2022-02-21 18:52:21 +05:30 committed by YAKSH BARIYA
parent c0669926e3
commit f2f67b96a3
2 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,5 @@
diff -uNr wrk-4.1.0/Makefile wrk-4.1.0.mod/Makefile
--- wrk-4.1.0/Makefile 2018-01-21 08:00:58.000000000 +0200
+++ wrk-4.1.0.mod/Makefile 2020-05-08 02:09:33.254774677 +0300
--- ./Makefile.orig 2022-02-21 18:50:35.103778638 +0530
+++ ./Makefile 2022-02-21 18:51:47.323778610 +0530
@@ -1,5 +1,5 @@
-CFLAGS += -std=c99 -Wall -O2 -D_REENTRANT
-LIBS := -lpthread -lm -lssl -lcrypto
@ -18,13 +17,15 @@ diff -uNr wrk-4.1.0/Makefile wrk-4.1.0.mod/Makefile
LDFLAGS += -L$(WITH_LUAJIT)/lib
else
CFLAGS += -I$(ODIR)/include/luajit-2.1
@@ -61,7 +61,7 @@
@@ -59,9 +59,9 @@
$(ODIR):
@mkdir -p $@
$(ODIR)/bytecode.o: src/wrk.lua
-$(ODIR)/bytecode.o: src/wrk.lua
+$(ODIR)/bytecode.c: src/wrk.lua
@echo LUAJIT $<
- @$(SHELL) -c 'PATH=obj/bin:$(PATH) luajit -b $(CURDIR)/$< $(CURDIR)/$@'
+ @$(SHELL) -c 'PATH=obj/bin:$(PATH) luajit -b -a $(_ARCH) $(CURDIR)/$< $(CURDIR)/$@'
$(ODIR)/version.o:
@echo 'const char *VERSION="$(VER)";' | $(CC) -xc -c -o $@ -

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Modern HTTP benchmarking tool"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=4.1.0
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://github.com/wg/wrk/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=6fa1020494de8c337913fd139d7aa1acb9a020de6f7eb9190753aa4b1e74271e
TERMUX_PKG_DEPENDS="openssl, luajit"