0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-19 16:52:16 +00:00
Henrik Grimler 986babfda7 tree-wide: remove pthread/rt patches and workarounds
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
2023-02-13 05:56:37 +00:00

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)