2022-04-16 12:33:14 +02:00
|
|
|
--- ./Makefile.orig 2022-04-17 08:36:38.132700421 +0000
|
|
|
|
+++ ./Makefile 2022-04-17 19:16:25.686564910 +0000
|
2020-05-08 01:23:01 +02:00
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
-CFLAGS += -std=c99 -Wall -O2 -D_REENTRANT
|
2022-04-16 12:33:14 +02:00
|
|
|
-LIBS := -lm -lssl -lcrypto -lpthread
|
2020-05-08 01:23:01 +02:00
|
|
|
+CFLAGS += -std=c99 -Wall -D_REENTRANT
|
|
|
|
+LIBS := -lm -lssl -lcrypto
|
|
|
|
|
|
|
|
TARGET := $(shell uname -s | tr '[A-Z]' '[a-z]' 2>/dev/null || echo unknown)
|
|
|
|
|
|
|
|
@@ -31,7 +31,7 @@
|
|
|
|
LDFLAGS += -L$(ODIR)/lib
|
|
|
|
|
|
|
|
ifneq ($(WITH_LUAJIT),)
|
|
|
|
- CFLAGS += -I$(WITH_LUAJIT)/include
|
|
|
|
+ CFLAGS += -I$(WITH_LUAJIT)/include/luajit-2.1
|
|
|
|
LDFLAGS += -L$(WITH_LUAJIT)/lib
|
|
|
|
else
|
|
|
|
CFLAGS += -I$(ODIR)/include/luajit-2.1
|
2022-04-16 12:33:14 +02:00
|
|
|
@@ -61,7 +61,7 @@
|
2020-05-08 01:23:01 +02:00
|
|
|
|
2022-04-16 12:33:14 +02:00
|
|
|
$(ODIR)/bytecode.c: src/wrk.lua $(DEPS)
|
2020-05-08 01:23:01 +02:00
|
|
|
@echo LUAJIT $<
|
2022-04-16 12:33:14 +02:00
|
|
|
- @$(SHELL) -c 'PATH="obj/bin:$(PATH)" luajit -b "$(CURDIR)/$<" "$(CURDIR)/$@"'
|
|
|
|
+ @$(SHELL) -c 'PATH="obj/bin:$(PATH)" luajit -b -a $(_ARCH) "$(CURDIR)/$<" "$(CURDIR)/$@"'
|
2020-05-08 01:23:01 +02:00
|
|
|
|
|
|
|
$(ODIR)/version.o:
|
|
|
|
@echo 'const char *VERSION="$(VER)";' | $(CC) -xc -c -o $@ -
|