summaryrefslogtreecommitdiff
path: root/skip/zynaddsubfx/zynaddsubfx-mruby-zest-build-3.0.6-cflags_ldflags.patch
blob: 09dca6f2572914d727f66393b4fac5841ba92ce3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git i/Makefile w/Makefile
index 7bc3788..3af1cce 100644
--- i/Makefile
+++ w/Makefile
@@ -16,10 +16,14 @@ linux:
 	$(CC) -shared -o libzest.so `find mruby/build/host -type f | grep -v mrbc | grep -e "\.o$$" | grep -v bin` ./deps/libnanovg.a \
 		./deps/libnanovg.a \
 		src/osc-bridge/libosc-bridge.a \
-		`pkg-config --libs libuv` -lm -lX11 -lGL -lpthread
+		$(CFLAGS) \
+		`pkg-config --libs libuv` -lm -lX11 -lGL -lpthread \
+		$(LDFLAGS)
 	$(CC) test-libversion.c deps/pugl/pugl/pugl_x11.c \
+		$(CFLAGS) \
 		  -DPUGL_HAVE_GL \
-		  -ldl -o zest -lX11 -lGL -lpthread -I deps/pugl -std=gnu99 -Wno-trigraphs
+		  -ldl -o zest -lX11 -lGL -lpthread -I deps/pugl -std=gnu99 -Wno-trigraphs \
+			$(LDFLAGS)
 
 osx: deps/libuv.a
 	ruby ./rebuild-fcache.rb