summaryrefslogtreecommitdiffstats
path: root/toolchain/musl
diff options
context:
space:
mode:
authorDaniel Engberg <daniel.engberg.lists@pyret.net>2018-02-22 23:39:40 +0100
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2018-10-20 14:22:56 +0100
commitd27d87c9109e12485bc3a709c8dea1ce05f9f81c (patch)
tree852eb2e4bc9d58eb6319d0591bf57dafe09fd72d /toolchain/musl
parent6c4d3d705a0d6e508de94dc49736c250ecdae27c (diff)
downloadopenwrt-d27d87c9109e12485bc3a709c8dea1ce05f9f81c.tar.gz
openwrt-d27d87c9109e12485bc3a709c8dea1ce05f9f81c.tar.bz2
openwrt-d27d87c9109e12485bc3a709c8dea1ce05f9f81c.zip
toolchain/musl: Don't override optimization set by upstream
Don't override optimization set by upstream. Provides a speed increase for internal (library), malloc and string operations in musl. Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> [add : to PKG_RELEASE release variable for consistency] Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Diffstat (limited to 'toolchain/musl')
-rw-r--r--toolchain/musl/common.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/toolchain/musl/common.mk b/toolchain/musl/common.mk
index 883084b7b1..234709103c 100644
--- a/toolchain/musl/common.mk
+++ b/toolchain/musl/common.mk
@@ -9,7 +9,7 @@ include $(INCLUDE_DIR)/target.mk
PKG_NAME:=musl
PKG_VERSION:=1.1.20
-PKG_RELEASE=1
+PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
@@ -28,6 +28,8 @@ HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/hardening.mk
+TARGET_CFLAGS:= $(filter-out -O%,$(TARGET_CFLAGS))
+
MUSL_CONFIGURE:= \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
@@ -37,7 +39,8 @@ MUSL_CONFIGURE:= \
--host=$(GNU_HOST_NAME) \
--target=$(REAL_GNU_TARGET_NAME) \
--disable-gcc-wrapper \
- --enable-debug
+ --enable-debug \
+ --enable-optimize
define Host/Configure
ln -snf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)