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>
This commit is contained in:
Rosen Penev
2019-03-24 13:04:50 -07:00
parent 139ecea4d1
commit 68ab6919fd
2 changed files with 21 additions and 13 deletions
+13 -8
View File
@@ -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