Files
wrk/reproducible.patch
Martin Pluskal 8555ba6819 Accepting request 1251668 from home:bmwiedemann:branches:benchmark
Add reproducible.patch to create deterministic lua bytecode
and use system luajit to have the 'd' (deterministic) option available

OBS-URL: https://build.opensuse.org/request/show/1251668
OBS-URL: https://build.opensuse.org/package/show/benchmark/wrk?expand=0&rev=14
2025-03-11 10:40:08 +00:00

14 lines
456 B
Diff

Index: wrk-4.2.0/Makefile
===================================================================
--- wrk-4.2.0.orig/Makefile
+++ wrk-4.2.0/Makefile
@@ -61,7 +61,7 @@ $(ODIR):
$(ODIR)/bytecode.c: src/wrk.lua $(DEPS)
@echo LUAJIT $<
- @$(SHELL) -c 'PATH="obj/bin:$(PATH)" luajit -b "$(CURDIR)/$<" "$(CURDIR)/$@"'
+ @$(SHELL) -c 'luajit -bd "$(CURDIR)/$<" "$(CURDIR)/$@"'
$(ODIR)/version.o:
@echo 'const char *VERSION="$(VER)";' | $(CC) -xc -c -o $@ -