mirror of
https://github.com/LiBwrt-op/openwrt-6.x.git
synced 2026-01-08 12:14:47 +00:00
mold has seen a bunch of bugfixes and improvements since 2.33.0, so lets update it. Link: https://github.com/openwrt/openwrt/pull/18575 Signed-off-by: Robert Marko <robimarko@gmail.com>
23 lines
562 B
Makefile
23 lines
562 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=mold
|
|
PKG_VERSION:=2.37.1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL_FILE:=v$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/rui314/mold/archive/refs/tags
|
|
PKG_HASH:=b8e36086c95bd51e9829c9755c138f5c4daccdd63b6c35212b84229419f3ccbe
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_HOST_OPTIONS += \
|
|
-DMOLD_LTO=ON \
|
|
-DMOLD_MOSTLY_STATIC=ON \
|
|
-DMOLD_USE_SYSTEM_MIMALLOC=OFF \
|
|
-DMOLD_USE_SYSTEM_TBB=OFF
|
|
|
|
$(eval $(call HostBuild))
|