2012-11-23 20:02:29 +00:00
|
|
|
#
|
2013-07-04 21:26:01 +00:00
|
|
|
# Copyright (C) 2012-2013 OpenWrt.org
|
2012-11-23 20:02:29 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/target.mk
|
|
|
|
|
|
|
|
PKG_NAME:=musl
|
2019-04-12 14:25:49 +00:00
|
|
|
PKG_VERSION:=1.1.22
|
toolchain/musl: update to version 1.1.21
<https://www.openwall.com/lists/musl/2019/01/21/8>
"This release makes improvements with respect to default thread stack
size, including increasing the default from 80k to 128k, increasing
the default guard size from 4k to 8k, and allowing the default to be
increased via ELF headers so that programs that need larger stacks can
be build without source-level changes, using just LDFLAGS.
Insufficient stack size for AIO threads on kernels that don't honor
the constant MINSIGSTKSZ is also fixed.
The glob core has been rewritten to fix inability to see past
searchable-but-unreadable path components, and to avoid excessive
stack usage and unnecessary syscalls. The tsearch AVL tree
implementation has also been rewritten for better size and
performance. The math library adds more native single-instruction
implementations for arm, s390x, powerpc, and x86_64.
Various bugs are fixed, including several possible deadlocks, one of
which was a new regression in 1.1.20."
detailed release notes can be found in the WHATSNEW file:
<http://git.musl-libc.org/cgit/musl/tree/WHATSNEW#n1989>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2019-01-22 15:24:11 +00:00
|
|
|
PKG_RELEASE:=1
|
2012-11-23 20:02:29 +00:00
|
|
|
|
2017-01-03 16:51:04 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
2019-04-12 14:25:49 +00:00
|
|
|
PKG_SOURCE_VERSION:=e97681d6f2c44bf5fa9ecdd30607cb63c780062e
|
|
|
|
PKG_MIRROR_HASH:=a6655418698735e19fe1c2deffb7335bbda634385c636206dd3cd5c8194a3ce0
|
2017-01-03 16:51:04 +00:00
|
|
|
PKG_SOURCE_URL:=git://git.musl-libc.org/musl
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
|
2013-02-26 16:40:27 +00:00
|
|
|
|
2012-11-23 20:02:29 +00:00
|
|
|
LIBC_SO_VERSION:=$(PKG_VERSION)
|
2014-05-21 14:09:58 +00:00
|
|
|
PATCH_DIR:=$(PATH_PREFIX)/patches
|
2012-11-23 20:02:29 +00:00
|
|
|
|
2018-01-24 15:43:28 +00:00
|
|
|
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
|
|
|
HOST_BUILD_PREFIX:=$(TOOLCHAIN_DIR)
|
2012-11-23 20:02:29 +00:00
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
2018-01-24 15:43:28 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2015-06-20 17:37:25 +00:00
|
|
|
include $(INCLUDE_DIR)/hardening.mk
|
2012-11-23 20:02:29 +00:00
|
|
|
|
2018-02-22 22:39:40 +00:00
|
|
|
TARGET_CFLAGS:= $(filter-out -O%,$(TARGET_CFLAGS))
|
2019-01-22 08:50:09 +00:00
|
|
|
TARGET_CFLAGS+= $(if $(CONFIG_MUSL_DISABLE_CRYPT_SIZE_HACK),,-DCRYPT_SIZE_HACK)
|
2018-02-22 22:39:40 +00:00
|
|
|
|
2012-11-23 20:02:29 +00:00
|
|
|
MUSL_CONFIGURE:= \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
$(HOST_BUILD_DIR)/configure \
|
|
|
|
--prefix=/ \
|
|
|
|
--host=$(GNU_HOST_NAME) \
|
|
|
|
--target=$(REAL_GNU_TARGET_NAME) \
|
2016-01-19 12:41:59 +00:00
|
|
|
--disable-gcc-wrapper \
|
2018-02-22 22:39:40 +00:00
|
|
|
--enable-debug \
|
|
|
|
--enable-optimize
|
2012-11-23 20:02:29 +00:00
|
|
|
|
|
|
|
define Host/Configure
|
2018-01-24 15:46:22 +00:00
|
|
|
ln -snf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
|
2012-11-23 20:02:29 +00:00
|
|
|
( cd $(HOST_BUILD_DIR); rm -f config.cache; \
|
|
|
|
$(MUSL_CONFIGURE) \
|
|
|
|
);
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Clean
|
|
|
|
rm -rf \
|
|
|
|
$(HOST_BUILD_DIR) \
|
|
|
|
$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME) \
|
|
|
|
$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev
|
|
|
|
endef
|