summaryrefslogtreecommitdiff
path: root/tools/macos/zita-resampler-static-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tools/macos/zita-resampler-static-build.patch')
-rw-r--r--tools/macos/zita-resampler-static-build.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/macos/zita-resampler-static-build.patch b/tools/macos/zita-resampler-static-build.patch
new file mode 100644
index 0000000..5b894e1
--- /dev/null
+++ b/tools/macos/zita-resampler-static-build.patch
@@ -0,0 +1,28 @@
+--- zita-resampler-static-1.6.2.orig/source/Makefile
++++ zita-resampler-static-1.6.2/source/Makefile
+@@ -32,12 +32,12 @@ DISTDIR = zita-resampler-$(VERSION)
+
+
+ CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+-CXXFLAGS += -Wall -fPIC -O2 -ffast-math
+-CXXFLAGS += -march=native
++CXXFLAGS += -Wall -fPIC -O3 -ffast-math
+ LDFLAGS +=
+ LDLIBS +=
+
+
++ZITA-RESAMPLER_A = libzita-resampler.a
+ ZITA-RESAMPLER_SO = libzita-resampler.so
+ ZITA-RESAMPLER_MAJ = $(ZITA-RESAMPLER_SO).$(MAJVERS)
+ ZITA-RESAMPLER_MIN = $(ZITA-RESAMPLER_MAJ).$(MINVERS)
+@@ -47,6 +47,10 @@ ZITA-RESAMPLER_H = zita-resampler/resamp
+ zita-resampler/vresampler.h zita-resampler/cresampler.h
+
+
++$(ZITA-RESAMPLER_A): $(ZITA-RESAMPLER_O)
++ rm -f $@
++ ar cr $@ $^
++
+ $(ZITA-RESAMPLER_MIN): $(ZITA-RESAMPLER_O)
+ $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(ZITA-RESAMPLER_MAJ) -o $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_O) $(ZITA-RESAMPLER_DEP)
+