transmission: Add LTO support to shave off 35KB off of the ipk
Minor Makefile cleanups. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
0745dc5d6c
commit
70c34ef472
1 changed files with 11 additions and 9 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=transmission
|
PKG_NAME:=transmission
|
||||||
PKG_VERSION:=2.94
|
PKG_VERSION:=2.94
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@GITHUB/transmission/transmission-releases/master
|
PKG_SOURCE_URL:=@GITHUB/transmission/transmission-releases/master
|
||||||
|
@ -119,19 +119,18 @@ define Package/transmission-daemon-openssl/conffiles
|
||||||
endef
|
endef
|
||||||
Package/transmission-daemon-mbedtls/conffiles = $(Package/transmission-daemon-openssl/conffiles)
|
Package/transmission-daemon-mbedtls/conffiles = $(Package/transmission-daemon-openssl/conffiles)
|
||||||
|
|
||||||
|
TARGET_CFLAGS += -flto
|
||||||
|
TARGET_LDFLAGS += -Wl,--gc-sections -Wl,--as-needed
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-daemon \
|
|
||||||
--enable-cli \
|
--enable-cli \
|
||||||
--without-gtk \
|
--enable-daemon \
|
||||||
--enable-external-natpmp \
|
--enable-external-natpmp \
|
||||||
--enable-largefile \
|
--enable-largefile \
|
||||||
--enable-lightweight
|
--enable-lightweight \
|
||||||
|
--without-gtk \
|
||||||
ifeq ($(BUILD_VARIANT),openssl)
|
--without-kqueue \
|
||||||
CONFIGURE_ARGS += \
|
--without-systemd-daemon
|
||||||
--with-crypto=openssl
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BUILD_VARIANT),mbedtls)
|
ifeq ($(BUILD_VARIANT),mbedtls)
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
|
@ -139,6 +138,9 @@ ifeq ($(BUILD_VARIANT),mbedtls)
|
||||||
CONFIGURE_VARS += \
|
CONFIGURE_VARS += \
|
||||||
MBEDTLS_CFLAGS="-I$(STAGING_DIR)/usr/include/mbedtls" \
|
MBEDTLS_CFLAGS="-I$(STAGING_DIR)/usr/include/mbedtls" \
|
||||||
MBEDTLS_LIBS="-lmbedtls -lmbedcrypto"
|
MBEDTLS_LIBS="-lmbedtls -lmbedcrypto"
|
||||||
|
else
|
||||||
|
CONFIGURE_ARGS += \
|
||||||
|
--with-crypto=openssl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define Package/transmission-daemon-openssl/install
|
define Package/transmission-daemon-openssl/install
|
||||||
|
|
Loading…
Reference in a new issue