blob: d204a9e3db54cbfc2489ac546f5ec3876c79ebdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- wrk-4.1.0/Makefile 2018-01-21 06:00:58.000000000 +0000
+++ wrk-4.1.0/Makefile 2018-02-12 19:13:16.127644902 +0000
@@ -30,20 +30,8 @@
CFLAGS += -I$(ODIR)/include
LDFLAGS += -L$(ODIR)/lib
-ifneq ($(WITH_LUAJIT),)
- CFLAGS += -I$(WITH_LUAJIT)/include
- LDFLAGS += -L$(WITH_LUAJIT)/lib
-else
- CFLAGS += -I$(ODIR)/include/luajit-2.1
- DEPS += $(ODIR)/lib/libluajit-5.1.a
-endif
-
-ifneq ($(WITH_OPENSSL),)
- CFLAGS += -I$(WITH_OPENSSL)/include
- LDFLAGS += -L$(WITH_OPENSSL)/lib
-else
- DEPS += $(ODIR)/lib/libssl.a
-endif
+CFLAGS += $(shell pkg-config openssl luajit --cflags)
+LDFLAGS += $(shell pkg-config openssl luajit --libs)
all: $(BIN)
|