From 5bc09e3885df0eb61678c68cf045d7efa59105e5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 21 May 2024 13:33:14 +0200 Subject: use pkg-config for ykpers-1 We still have `-lyubikey`, though... --- bin/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/Makefile b/bin/Makefile index 4906904..e1c8ed2 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -6,7 +6,7 @@ RM := rm CFLAGS += -std=gnu11 -O2 -fPIC -Wall -Werror CFLAGS_EXTRA += $(shell pkg-config --cflags --libs iniparser) CFLAGS_EXTRA += $(shell pkg-config --cflags --libs libkeyutils) -CFLAGS_EXTRA += -lykpers-1 -lyubikey +CFLAGS_EXTRA += $(shell pkg-config --cflags --libs ykpers-1) -lyubikey CFLAGS_SYSTEMD := $(shell pkg-config --cflags --libs libsystemd 2>/dev/null) ifneq ($(CFLAGS_SYSTEMD),) CFLAGS_EXTRA += -DHAVE_SYSTEMD $(CFLAGS_SYSTEMD) -- cgit v1.2.3-70-g09d2