summaryrefslogtreecommitdiff
path: root/tools/macos/zita-resampler-static-build.patch
blob: 5b894e1d14187d0723853a17937ad74d5c6a89bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)