From ca7c0d4ea7afc7e045396f2d023f11feb1641a91 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 8 Sep 2017 22:59:38 +0200 Subject: [PATCH] Fix build with libraries in custom prefixes --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2ff7814f..e1be7ff1 100644 --- a/Makefile +++ b/Makefile @@ -10,11 +10,12 @@ include arch.mk ifeq ($(ARCH), lin) SOURCES += ext/osdialog/osdialog_gtk2.c - CFLAGS += $(shell pkg-config --cflags gtk+-2.0) + CFLAGS += $(shell pkg-config --cflags gtk+-2.0 gl glew glfw3 jansson libzip portaudio-2.0 samplerate) + CXXFLAGS += $(shell pkg-config --cflags gl glew glfw3 jansson libzip portaudio-2.0 samplerate) LDFLAGS += -rdynamic \ - -lpthread -lGL -ldl \ - $(shell pkg-config --libs gtk+-2.0) \ - -Ldep/lib -lGLEW -lglfw -ljansson -lsamplerate -lcurl -lzip -lportaudio -lportmidi + -lpthread -ldl \ + $(shell pkg-config --libs gtk+-2.0 gl glew glfw3 jansson libzip portaudio-2.0 samplerate) \ + -Ldep/lib -lcurl -lportmidi TARGET = Rack endif