aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-05-21 13:29:28 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-05-21 13:45:01 +0200
commit9c3741468b9e5e54c1ff94591b8e16860bc0ca44 (patch)
tree6343c3f8532d193d97735cc5f2aceddf2b5b0980
parent4e5fd62efa6ab0a648290150ca64a0e63cc4ca91 (diff)
downloadmkinitcpio-ykfde-9c3741468b9e5e54c1ff94591b8e16860bc0ca44.tar.gz
mkinitcpio-ykfde-9c3741468b9e5e54c1ff94591b8e16860bc0ca44.tar.zst
use pkg-config for libkeyutils
-rw-r--r--bin/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/Makefile b/bin/Makefile
index e387c32..4906904 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -5,7 +5,8 @@ RM := rm
# flags
CFLAGS += -std=gnu11 -O2 -fPIC -Wall -Werror
CFLAGS_EXTRA += $(shell pkg-config --cflags --libs iniparser)
-CFLAGS_EXTRA += -lkeyutils -lykpers-1 -lyubikey
+CFLAGS_EXTRA += $(shell pkg-config --cflags --libs libkeyutils)
+CFLAGS_EXTRA += -lykpers-1 -lyubikey
CFLAGS_SYSTEMD := $(shell pkg-config --cflags --libs libsystemd 2>/dev/null)
ifneq ($(CFLAGS_SYSTEMD),)
CFLAGS_EXTRA += -DHAVE_SYSTEMD $(CFLAGS_SYSTEMD)