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
14 lines
456 B
Diff
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 $@ -
|