aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-05-21 13:28:39 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-05-21 13:44:57 +0200
commit4e5fd62efa6ab0a648290150ca64a0e63cc4ca91 (patch)
treef4ec8a8b826550b361c309fb472d7cd42ce211be /bin
parent06df8f74d97c07904786e3ab38546043685bdf24 (diff)
downloadmkinitcpio-ykfde-iniparser-4-2-2.tar.gz
mkinitcpio-ykfde-iniparser-4-2-2.tar.zst
update include, use pkg-config for iniparseriniparser-4-2-2
... which ships required files with release 4.2.2.
Diffstat (limited to 'bin')
-rw-r--r--bin/Makefile3
-rw-r--r--bin/worker.c2
-rw-r--r--bin/ykfde.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/bin/Makefile b/bin/Makefile
index 583370d..e387c32 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -4,7 +4,8 @@ INSTALL := install
RM := rm
# flags
CFLAGS += -std=gnu11 -O2 -fPIC -Wall -Werror
-CFLAGS_EXTRA += -liniparser -lkeyutils -lykpers-1 -lyubikey
+CFLAGS_EXTRA += $(shell pkg-config --cflags --libs iniparser)
+CFLAGS_EXTRA += -lkeyutils -lykpers-1 -lyubikey
CFLAGS_SYSTEMD := $(shell pkg-config --cflags --libs libsystemd 2>/dev/null)
ifneq ($(CFLAGS_SYSTEMD),)
CFLAGS_EXTRA += -DHAVE_SYSTEMD $(CFLAGS_SYSTEMD)
diff --git a/bin/worker.c b/bin/worker.c
index 81dc68f..9f65e1d 100644
--- a/bin/worker.c
+++ b/bin/worker.c
@@ -33,7 +33,7 @@
#include <systemd/sd-daemon.h>
-#include <iniparser.h>
+#include <iniparser/iniparser.h>
#include <keyutils.h>
diff --git a/bin/ykfde.c b/bin/ykfde.c
index 682e05c..760605d 100644
--- a/bin/ykfde.c
+++ b/bin/ykfde.c
@@ -30,7 +30,7 @@
#include <systemd/sd-daemon.h>
-#include <iniparser.h>
+#include <iniparser/iniparser.h>
#include <keyutils.h>