summarylogtreecommitdiffstats
path: root/osirisedit-makefile-flags.patch
blob: a96a6f01dead8350eda039049fa4ec0906388bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/Makefile b/Makefile
index 2b0de9f..14ee615 100644
--- a/Makefile
+++ b/Makefile
@@ -22,11 +22,14 @@ SOURCES = \
 include Makefile-arch.inc
 ifeq ($(ARCH),lin)
 	# Linux
-	FLAGS += -DARCH_LIN $(shell pkg-config --cflags gtk+-2.0)
+	FLAGS += -DARCH_LIN \
+		$(shell pkg-config --cflags gtk+-2.0) \
+		$(shell pkg-config --cflags sdl2)
 	LDFLAGS += -static-libstdc++ -static-libgcc \
 		-lGL -lpthread \
-		-Ldep/lib -lSDL2 -lsamplerate -lsndfile -ljansson -lcurl \
-		-lgtk-x11-2.0 -lgobject-2.0
+		-Ldep/lib -lsamplerate -lsndfile -ljansson -lcurl \
+		$(shell pkg-config --libs sdl2) \
+		$(shell pkg-config --libs gtk+-2.0)
 	SOURCES += ext/osdialog/osdialog_gtk2.c
 else ifeq ($(ARCH),mac)
 	# Mac