aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-05-21 11:22:14 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-05-21 13:15:29 +0200
commit7a858140c0aa43a972b2be0ee920c9bfe4ef94a8 (patch)
tree99727322d05f2bc4517defadd044299b5cf8d5ef
parent8370784a9be4900b9cda82d42e1fa5fdcaee368b (diff)
downloadpacredir-iniparser-4-2-2.tar.gz
pacredir-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.
-rw-r--r--Makefile2
-rw-r--r--pacredir.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7b4701c..bb6ac24 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ CFLAGS_EXTRA += $(shell pkg-config --libs --cflags libsystemd)
CFLAGS_EXTRA += $(shell pkg-config --libs --cflags libcurl)
CFLAGS_EXTRA += $(shell pkg-config --libs --cflags avahi-client)
CFLAGS_EXTRA += $(shell pkg-config --libs --cflags libmicrohttpd)
-CFLAGS_EXTRA += -liniparser
+CFLAGS_EXTRA += $(shell pkg-config --libs --cflags iniparser)
LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie
# the distribution ID
diff --git a/pacredir.h b/pacredir.h
index 571ccc2..5be6295 100644
--- a/pacredir.h
+++ b/pacredir.h
@@ -44,7 +44,7 @@
/* various headers needing linker options */
#include <curl/curl.h>
-#include <iniparser.h>
+#include <iniparser/iniparser.h>
#include <microhttpd.h>
#include <pthread.h>