[openwrt/openwrt] build: use KBUILD_HOSTLDFLAGS

LEDE Commits lede-commits at lists.infradead.org
Wed May 18 04:32:45 PDT 2022


stintel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/6300313deed3688c86cf5633ada439f09e8bcbfd

commit 6300313deed3688c86cf5633ada439f09e8bcbfd
Author: Stijn Tintel <stijn at linux-ipv6.be>
AuthorDate: Tue Mar 29 16:32:25 2022 +0300

    build: use KBUILD_HOSTLDFLAGS
    
    According to the GNU make manual, specifying library paths should be
    done in LDFLAGS rather than LDLIBS. Replace KBUILD_HOSTLDLIBS with
    KBUILD_HOSTLDFLAGS to pass the host lib directory.
    
    Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
 include/kernel.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/kernel.mk b/include/kernel.mk
index f27b78bbcc..01b737f132 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -110,7 +110,7 @@ KERNEL_MAKE_FLAGS = \
 	KBUILD_BUILD_HOST="$(call qstrip,$(CONFIG_KERNEL_BUILD_DOMAIN))" \
 	KBUILD_BUILD_TIMESTAMP="$(KBUILD_BUILD_TIMESTAMP)" \
 	KBUILD_BUILD_VERSION="0" \
-	KBUILD_HOSTLDLIBS="-L$(STAGING_DIR_HOST)/lib" \
+	KBUILD_HOSTLDFLAGS="-L$(STAGING_DIR_HOST)/lib" \
 	CONFIG_SHELL="$(BASH)" \
 	$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \
 	$(if $(PKG_BUILD_ID),LDFLAGS_MODULE=--build-id=0x$(PKG_BUILD_ID)) \




More information about the lede-commits mailing list