mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-19 16:52:16 +00:00
986babfda7
Commit af18f1dac0b5 ("scripts: start_build: create libpthread and librt as well") added helper libs so that packages that try to find these libs can do so. %ci:no-build
32 lines
938 B
Diff
32 lines
938 B
Diff
--- a/source/Makefile
|
|
+++ b/source/Makefile
|
|
@@ -20,7 +20,7 @@
|
|
|
|
# Modify as required.
|
|
#
|
|
-SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
|
|
+SUFFIX :=
|
|
PREFIX ?= /usr/local
|
|
INCDIR ?= $(PREFIX)/include
|
|
LIBDIR ?= $(PREFIX)/lib$(SUFFIX)
|
|
@@ -33,8 +33,7 @@
|
|
|
|
CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
|
|
CPPFLAGS += -DENABLE_VECTOR_MODE
|
|
-CXXFLAGS += -fPIC -Wall -ffast-math -funroll-loops -O2
|
|
-CXXFLAGS += -march=native
|
|
+CXXFLAGS += -fPIC -Wall -ffast-math -funroll-loops
|
|
LDLFAGS +=
|
|
LDLIBS +=
|
|
|
|
@@ -56,8 +55,8 @@
|
|
install -d $(DESTDIR)$(LIBDIR)
|
|
install -m 644 $(ZITA-CONVOLVER_H) $(DESTDIR)$(INCDIR)
|
|
install -m 755 $(ZITA-CONVOLVER_MIN) $(DESTDIR)$(LIBDIR)
|
|
- ldconfig
|
|
ln -sf $(ZITA-CONVOLVER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-CONVOLVER_SO)
|
|
+ ln -sf $(ZITA-CONVOLVER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-CONVOLVER_MAJ)
|
|
|
|
uninstall:
|
|
rm -rf $(DESTDIR)$(INCDIR)/$(ZITA-CONVOLVER_H)
|