summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2015-02-16 15:25:03 +0000
committerfalkTX <falktx@gmail.com>2015-02-16 15:25:03 +0000
commit79b8c6215b6d057fd5b667a02cc7cb9975ad72da (patch)
tree0262d4b732611deb9d1bc5b3cecd8e0fb8f70188
parentaf7a094a0c0e8b658736d77361a2d8d2f99b0006 (diff)
Put sndfile and rubberband flags/libs only on ZamSFZ Makefile
-rw-r--r--Makefile.mk2
-rw-r--r--plugins/ZamSFZ/Makefile6
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.mk b/Makefile.mk
index 64c15b7..e450b8a 100644
--- a/Makefile.mk
+++ b/Makefile.mk
@@ -26,7 +26,7 @@ BASE_OPTS = -O2 -ffast-math -fdata-sections -ffunction-sections
ifneq ($(NOOPT),true)
BASE_OPTS += -mtune=generic -msse -msse2 -mfpmath=sse
endif
-LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--strip-all $(shell pkg-config --libs sndfile rubberband)
+LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--strip-all
ifeq ($(MACOS),true)
# MacOS linker flags
diff --git a/plugins/ZamSFZ/Makefile b/plugins/ZamSFZ/Makefile
index b6b4d8b..aa1ba72 100644
--- a/plugins/ZamSFZ/Makefile
+++ b/plugins/ZamSFZ/Makefile
@@ -27,6 +27,12 @@ OBJS_UI = \
include ../Makefile.mk
# --------------------------------------------------------------
+# Extra flags
+
+BASE_FLAGS += $(shell pkg-config --cflags sndfile rubberband)
+LINK_FLAGS += $(shell pkg-config --libs sndfile rubberband)
+
+# --------------------------------------------------------------
# Enable all possible plugin types
ifeq ($(LINUX),true)