From 68ab6919fdb63f266e6f1022e14ee4372f1e1899 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 24 Mar 2019 13:04:50 -0700 Subject: unrar: Update to 5.7.3 Added -fno-rtti and -nodefaultlibs for slightly smaller size. Also added LTO for a close to 25kb size reduction. Signed-off-by: Rosen Penev --- utils/unrar/patches/100-makefile_fixes.patch | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'utils/unrar/patches') diff --git a/utils/unrar/patches/100-makefile_fixes.patch b/utils/unrar/patches/100-makefile_fixes.patch index 972961220..65d06efc7 100644 --- a/utils/unrar/patches/100-makefile_fixes.patch +++ b/utils/unrar/patches/100-makefile_fixes.patch @@ -1,22 +1,27 @@ --- a/makefile +++ b/makefile -@@ -2,13 +2,13 @@ +@@ -2,14 +2,14 @@ # Makefile for UNIX - unrar # Linux using GCC -CXX=c++ -CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else -+#CXX=c++ -+#CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else - LIBFLAGS=-fPIC +-LIBFLAGS=-fPIC ++CXX?=c++ ++CXXFLAGS?=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else ++LIBFLAGS?=-fPIC DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP - STRIP=strip - AR=ar +-STRIP=strip +-AR=ar -LDFLAGS=-pthread -+LDFLAGS=-lpthread - DESTDIR=/usr +-DESTDIR=/usr ++STRIP?=strip ++AR?=ar ++LDFLAGS?=-lpthread ++DESTDIR?=/usr # Linux using LCC + #CXX=lcc @@ -166,7 +166,7 @@ uninstall-unrar: rm -f $(DESTDIR)/bin/unrar -- cgit v1.2.3