From 005a3975a7e54e3d469d70a6d17e9eaf24ee0f80 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Mon, 8 Jul 2024 15:21:28 +0200 Subject: [PATCH] use pkg-config in lv2-make --- templates/lv2-make/Makefile | 4 ++-- templates/vst3/src/vst3.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/lv2-make/Makefile b/templates/lv2-make/Makefile index 61dda15..562746b 100644 --- a/templates/lv2-make/Makefile +++ b/templates/lv2-make/Makefile @@ -52,10 +52,10 @@ DATA_DIR := $(or $(DATA_DIR),.) PLUGIN_DIR := $(or $(PLUGIN_DIR),src) CFLAGS := -O3 -Wall -Wpedantic -Wextra -CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -fPIC $(CFLAGS) $(CFLAGS_EXTRA) +CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) $(shell pkg-config --cflags lv2) -fPIC $(CFLAGS) $(CFLAGS_EXTRA) LDFLAGS := -LDFLAGS_ALL := -shared $(LDFLAGS) $(LDFLAGS_EXTRA) +LDFLAGS_ALL := -shared $(shell pkg-config --libs lv2) $(LDFLAGS) $(LDFLAGS_EXTRA) CXXFLAGS := $(CFLAGS) CXXFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -fPIC $(CXXFLAGS) $(CXXFLAGS_EXTRA) diff --git a/templates/vst3/src/vst3.c b/templates/vst3/src/vst3.c index 503e0d5..29dc96e 100644 --- a/templates/vst3/src/vst3.c +++ b/templates/vst3/src/vst3.c @@ -59,7 +59,7 @@ typedef struct { # include #endif #ifdef __APPLE__ -# include +# include #endif #if defined(__i386__) || defined(__x86_64__)