From 08a1e7331325f92b491afa0409080f87b1e7a02a Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 9 Aug 2017 11:25:29 +0200 Subject: [PATCH] Fix build with libraries in custom prefixes --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b91046c1..75f895c9 100644 --- a/Makefile +++ b/Makefile @@ -10,9 +10,10 @@ SOURCES = $(wildcard src/*.cpp src/*/*.cpp) \ ifeq ($(ARCH), lin) SOURCES += ext/noc_file_dialog.c CFLAGS += -DNOC_FILE_DIALOG_GTK $(shell pkg-config --cflags gtk+-2.0) +CXXFLAGS += $(shell pkg-config --cflags glew glfw3 jansson samplerate libcurl libzip) LDFLAGS += -rdynamic \ - -lpthread -lGL -lGLEW -lglfw -ldl -ljansson -lportaudio -lportmidi -lsamplerate -lcurl -lzip \ - $(shell pkg-config --libs gtk+-2.0) + -lpthread -lGL -ldl -lportaudio -lportmidi \ + $(shell pkg-config --libs gtk+-2.0 glew glfw3 jansson samplerate libcurl libzip) TARGET = Rack endif