From d250c71b79881bf949dc0bbd9e4df42bd2dabf4a Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 20 May 2024 05:00:48 +0300 Subject: detect libreadline via pkg-config --- Makefile | 4 ++-- applause.c | 1 - 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 -- cgit v1.2.3