1
0
mirror of https://github.com/wg/wrk synced 2025-01-08 23:32:54 +08:00

make lua imports version independent

This commit is contained in:
Will 2018-01-21 14:05:34 +09:00
parent 91655b5520
commit 9d71b2f6dd
3 changed files with 6 additions and 5 deletions

View File

@ -34,7 +34,8 @@ ifneq ($(WITH_LUAJIT),)
CFLAGS += -I$(WITH_LUAJIT)/include CFLAGS += -I$(WITH_LUAJIT)/include
LDFLAGS += -L$(WITH_LUAJIT)/lib LDFLAGS += -L$(WITH_LUAJIT)/lib
else else
DEPS += $(ODIR)/lib/libluajit-5.1.a CFLAGS += -I$(ODIR)/include/luajit-2.0
DEPS += $(ODIR)/lib/libluajit-5.1.a
endif endif
ifneq ($(WITH_OPENSSL),) ifneq ($(WITH_OPENSSL),)

View File

@ -2,9 +2,9 @@
#define SCRIPT_H #define SCRIPT_H
#include <stdbool.h> #include <stdbool.h>
#include <luajit-2.0/lua.h> #include <lua.h>
#include <luajit-2.0/lualib.h> #include <lualib.h>
#include <luajit-2.0/lauxlib.h> #include <lauxlib.h>
#include <unistd.h> #include <unistd.h>
#include "stats.h" #include "stats.h"
#include "wrk.h" #include "wrk.h"

View File

@ -10,7 +10,7 @@
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <luajit-2.0/lua.h> #include <lua.h>
#include "stats.h" #include "stats.h"
#include "ae.h" #include "ae.h"