@ -1,12 +1,12 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := zstd
PKG_VERSION := 1.4.0
PKG_RELEASE := 4
PKG_VERSION := 1.4.1
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/facebook/zstd/tar.gz/v$( PKG_VERSION) ?
PKG_HASH := 63be339137d2b683c6d19a9e34f4fb684790e864fee13c7dd40e197a64c705c1
PKG_HASH := f91ea3397e6cc65d398e1bc0713cf2f0b0de2fb85ea9dabb1eb3e8f1b22f8d6f
PKG_MAINTAINER := Amol Bhave <ambhave@fb.com>
PKG_LICENSE := GPL-2.0-or-later
@ -21,13 +21,6 @@ include $(INCLUDE_DIR)/package.mk
i n c l u d e $( INCLUDE_DIR ) / h o s t - b u i l d . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
i f e q ( $( CONFIG_ZSTD_OPTIMIZE_O 3) , y )
TARGET_CFLAGS := $( filter-out -O%,$( TARGET_CFLAGS) )
TARGET_CFLAGS += -O3
TARGET_CXXFLAGS := $( filter-out -O%,$( TARGET_CXXFLAGS) )
TARGET_CXXFLAGS += -O3
e n d i f
d e f i n e P a c k a g e / z s t d / D e f a u l t
SUBMENU:= Compression
URL:= https://github.com/facebook/zstd
@ -38,6 +31,7 @@ $(call Package/zstd/Default)
SECTION:= libs
CATEGORY:= Libraries
TITLE:= zstd library.
MENU:= 1
e n d e f
d e f i n e P a c k a g e / l i b z s t d / d e s c r i p t i o n
@ -48,6 +42,7 @@ endef
d e f i n e P a c k a g e / l i b z s t d / c o n f i g
config ZSTD_OPTIMIZE_O3
bool "Use all optimizations (-O3)"
depends on PACKAGE_libzstd
default y
help
This enables additional optmizations using the -O3 compilation flag.
@ -66,6 +61,13 @@ define Package/zstd/description
This package provides the zstd binaries.
e n d e f
i f e q ( $( CONFIG_ZSTD_OPTIMIZE_O 3) , y )
TARGET_CFLAGS := $( filter-out -O%,$( TARGET_CFLAGS) ) -O3
e n d i f
TARGET_CFLAGS += -flto
TARGET_LDFLAGS += -Wl,--as-needed
d e f i n e P a c k a g e / l i b z s t d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libzstd.so* $( 1) /usr/lib/