mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
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:
@@ -6,12 +6,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=unrar
|
||||
PKG_VERSION:=5.6.8
|
||||
PKG_VERSION:=5.7.3
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://www.rarlab.com/rar
|
||||
PKG_HASH:=a4cc0ac14a354827751912d2af4a0a09e2c2129df5766576fa7e151791dd3dff
|
||||
PKG_HASH:=40e856b78374f258d8a1f5f02c02f828c5392a0118c9300fd169a300b520a444
|
||||
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>, \
|
||||
Ted Hess <thess@kitschensync.net>
|
||||
|
||||
@@ -25,6 +25,12 @@ PKG_INSTALL:=1
|
||||
include $(INCLUDE_DIR)/uclibc++.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
ifeq ($(CONFIG_USE_UCLIBCXX),y)
|
||||
TARGET_LDFLAGS +=-nodefaultlibs
|
||||
endif
|
||||
TARGET_CXXFLAGS +=-fno-rtti -flto
|
||||
TARGET_LDFLAGS +=$(FPIC) -Wl,--gc-sections
|
||||
|
||||
define Package/unrar/Default
|
||||
TITLE:=UnRAR
|
||||
SUBMENU:=Compression
|
||||
@@ -58,9 +64,6 @@ define Package/libunrar/description
|
||||
archives
|
||||
endef
|
||||
|
||||
MAKE_FLAGS += \
|
||||
LDFLAGS="$(TARGET_LDFLAGS) -lpthread"
|
||||
|
||||
ifeq ($(BUILD_VARIANT),lib)
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default,lib)
|
||||
|
||||
Reference in New Issue
Block a user