summaryrefslogtreecommitdiff
path: root/audio/dpf-plugins-lv2/files/patch-Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'audio/dpf-plugins-lv2/files/patch-Makefile.mk')
-rw-r--r--audio/dpf-plugins-lv2/files/patch-Makefile.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/audio/dpf-plugins-lv2/files/patch-Makefile.mk b/audio/dpf-plugins-lv2/files/patch-Makefile.mk
new file mode 100644
index 000000000000..64910b1c982f
--- /dev/null
+++ b/audio/dpf-plugins-lv2/files/patch-Makefile.mk
@@ -0,0 +1,27 @@
+--- Makefile.mk.orig 2018-04-27 06:05:19 UTC
++++ Makefile.mk
+@@ -23,7 +23,7 @@ endif
+ # Set build and link flags
+
+ BASE_FLAGS = -Wall -Wextra -pipe
+-BASE_OPTS = -O2 -ffast-math -mtune=generic -msse -msse2 -fdata-sections -ffunction-sections
++BASE_OPTS = -O2 -ffast-math -mtune=generic $(SIMD_FLAGS) -fdata-sections -ffunction-sections
+
+ ifneq ($(MACOS_OLD),true)
+ # Old MacOS doesn't support this
+@@ -35,13 +35,13 @@ ifeq ($(MACOS),true)
+ LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip_dylibs
+ else
+ # Common linker flags
+-LINK_OPTS = -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed -Wl,--strip-all
++LINK_OPTS = -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--strip-all
+ endif
+
+ ifeq ($(RASPPI),true)
+ # Raspberry-Pi optimization flags
+ BASE_OPTS = -O2 -ffast-math -march=armv6 -mfpu=vfp -mfloat-abi=hard
+-LINK_OPTS = -Wl,-O1 -Wl,--as-needed -Wl,--strip-all
++LINK_OPTS = -Wl,-O1 -Wl,--strip-all
+ endif
+
+ ifeq ($(NOOPT),true)