aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-05-20 05:00:48 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-05-20 05:00:48 +0300
commitd250c71b79881bf949dc0bbd9e4df42bd2dabf4a (patch)
tree735be492a7b76479b44dc6b7d1282e3fa3b2ae9a
parent14af7754cfc5de913d5774a43ebf3f1653209814 (diff)
downloadapplause2-d250c71b79881bf949dc0bbd9e4df42bd2dabf4a.tar.gz
detect libreadline via pkg-config
-rw-r--r--Makefile4
-rw-r--r--applause.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 62c82e9..37eeb11 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,8 @@ CFLAGS = -std=c99 -Wall -O2 -g
LUA_CFLAGS = $(shell pkg-config --cflags luajit)
LUA_LDFLAGS = $(shell pkg-config --libs luajit)
-READLINE_CFLAGS =
-READLINE_LDFLAGS = -lreadline -lhistory
+READLINE_CFLAGS = $(shell pkg-config --cflags readline)
+READLINE_LDFLAGS = $(shell pkg-config --libs readline) -lhistory
JACK_CFLAGS := $(shell pkg-config --cflags jack)
JACK_LDFLAGS := $(shell pkg-config --libs jack)
diff --git a/applause.c b/applause.c
index e9ffd66..1ce4513 100644
--- a/applause.c
+++ b/applause.c
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE
//#define _POSIX_C_SOURCE 200112
#define _GNU_SOURCE