aboutsummaryrefslogtreecommitdiff
path: root/utils/unrar/patches
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-03-24 13:04:50 -0700
committerRosen Penev <rosenp@gmail.com>2019-04-05 18:24:33 -0700
commit68ab6919fdb63f266e6f1022e14ee4372f1e1899 (patch)
tree84f105cc1ab34f196c19c72437c071543c607b08 /utils/unrar/patches
parent139ecea4d156e1e4ddbd3dc5fe9cc4b745bf3535 (diff)
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 <rosenp@gmail.com>
Diffstat (limited to 'utils/unrar/patches')
-rw-r--r--utils/unrar/patches/100-makefile_fixes.patch21
1 files changed, 13 insertions, 8 deletions
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