From aeaa5ab9f5f1148331ca466e00e2e0f2b0e867ab Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 14 Jan 2018 08:18:49 +0100 Subject: use pkgconfig to find zmq in zmq-sub Makefile --- zmqtest/zmq-sub/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zmqtest/zmq-sub/Makefile b/zmqtest/zmq-sub/Makefile index 1b1f646..be3ea43 100644 --- a/zmqtest/zmq-sub/Makefile +++ b/zmqtest/zmq-sub/Makefile @@ -1,6 +1,8 @@ GIT_VERSION = $(shell git describe --long --all | cut -d "-" -f 3) -CFLAGS = -Wall -g -std=gnu11 -lzmq -DGIT_VERSION=\"$(GIT_VERSION)\" +ZMQ_LIB=$(shell pkg-config --libs libzmq) + +CFLAGS = -Wall -g -std=gnu11 $(ZMQ_LIB) -DGIT_VERSION=\"$(GIT_VERSION)\" all: zmq-sub -- cgit v1.2.3