summaryrefslogtreecommitdiffstats
path: root/tools/meson
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2023-01-27 16:33:25 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2023-07-04 20:25:40 +0200
commitca788d615fbf780b1a1665475ed304de4276f512 (patch)
tree806f44e10108fa5ad533c905320987485a70ec06 /tools/meson
parent21ab20bc64f5608d9341b1878fa1c5a569b471d5 (diff)
downloadopenwrt-ca788d615fbf780b1a1665475ed304de4276f512.tar.gz
openwrt-ca788d615fbf780b1a1665475ed304de4276f512.tar.bz2
openwrt-ca788d615fbf780b1a1665475ed304de4276f512.zip
meson: prepare to use different linkers
This sets the default linker for cross compilation. No functional change intended. Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'tools/meson')
-rw-r--r--tools/meson/Makefile1
-rw-r--r--tools/meson/files/openwrt-cross.txt.in2
2 files changed, 3 insertions, 0 deletions
diff --git a/tools/meson/Makefile b/tools/meson/Makefile
index b115e0802b..f957bfb49f 100644
--- a/tools/meson/Makefile
+++ b/tools/meson/Makefile
@@ -2,6 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=meson
PKG_VERSION:=1.1.1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/mesonbuild/meson/releases/download/$(PKG_VERSION)
diff --git a/tools/meson/files/openwrt-cross.txt.in b/tools/meson/files/openwrt-cross.txt.in
index ec4b027f1b..ba11915069 100644
--- a/tools/meson/files/openwrt-cross.txt.in
+++ b/tools/meson/files/openwrt-cross.txt.in
@@ -1,6 +1,8 @@
[binaries]
c = [@CC@]
+c_ld = [@LD@]
cpp = [@CXX@]
+cpp_ld = [@LD@]
ar = '@AR@'
strip = '@STRIP@'
nm = '@NM@'