forked from Openwrt-EcoNet/openwrt
It seems that MOLD_MOSTLY_STATIC was required before to avoid packaging every single dependency. But nowadays, mold uses whatever dependency it can find and builds its own if it cannot. Saves a small amount of compilation time. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18881 Signed-off-by: Robert Marko <robimarko@gmail.com>
22 lines
535 B
Makefile
22 lines
535 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=mold
|
|
PKG_VERSION:=2.39.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:=231ea3643a14fe5b88478c97b68b31f7c975b57b247a81356ffd889d015b5cc1
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_HOST_OPTIONS += \
|
|
-DMOLD_LTO=ON \
|
|
-DMOLD_USE_SYSTEM_MIMALLOC=OFF \
|
|
-DMOLD_USE_SYSTEM_TBB=OFF
|
|
|
|
$(eval $(call HostBuild))
|