summaryrefslogtreecommitdiff
path: root/tools/macos/zita-resampler-static-build.patch
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-04-15 18:06:26 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-04-15 18:06:26 +0200
commit53a8de1e50765b3ff2a05478d3318dd5c60e4889 (patch)
treeb89ba147f52c76eb5afeb53430faf0e6bb0e30b1 /tools/macos/zita-resampler-static-build.patch
parent37a1793a9961d182e6a901fe9cbfc7753e341d98 (diff)
Add macOS build files.
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)
+