0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-11 23:00:52 +00:00
termux-packages/packages/pika/third-slash-slash-Makefile.patch
2022-11-19 16:38:51 +00:00

21 lines
714 B
Diff

--- a/third/slash/slash/Makefile
+++ b/third/slash/slash/Makefile
@@ -1,7 +1,5 @@
CLEAN_FILES = # deliberately empty, so we can append below.
-CXX=g++
-LDFLAGS= -lpthread -lrt
-CXXFLAGS= -g -std=c++11 -fno-builtin-memcmp -msse -msse4.2 -pipe -fPIC
+CXXFLAGS+= -std=c++17 -fno-builtin-memcmp -pipe -fPIC $(CPPFLAGS)
PROFILING_FLAGS= -pg
ARFLAGS = rs
OPT=
@@ -18,7 +16,7 @@ endif
# don't treat warnings as errors
ifeq ($(DEBUG_LEVEL),0)
DISABLE_WARNING_AS_ERROR=1
-OPT += -O2 -fno-omit-frame-pointer -DNDEBUG
+OPT += -Oz -fno-omit-frame-pointer -DNDEBUG
else
$(warning Warning: Compiling in debug mode. Don't use the resulting binary in production)
OPT += -O0 -D__XDEBUG__ -D_GNU_SOURCE $(PROFILING_FLAGS)