From 48596d4db3b25e7d50c441857dd60f0f0a4c169e Mon Sep 17 00:00:00 2001 From: Tony Battersby Date: Tue, 10 Aug 2021 15:44:21 -0400 Subject: [PATCH] tcsh: fix compile error after LDFLAGS change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding -f*-prefix-map to LDFLAGS caused the following issue when compiling tcsh on Ubuntu 18.04: gcc: error: unrecognized command line option ‘-fmacro-prefix-map=...’ Fix by using BUILD_LDFLAGS instead of LDFLAGS for gethost. [YOCTO #14481] Signed-off-by: Tony Battersby Signed-off-by: Khem Raj --- meta-oe/recipes-shells/tcsh/tcsh_6.22.04.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-shells/tcsh/tcsh_6.22.04.bb b/meta-oe/recipes-shells/tcsh/tcsh_6.22.04.bb index ac6c6db813..c4da5cd835 100644 --- a/meta-oe/recipes-shells/tcsh/tcsh_6.22.04.bb +++ b/meta-oe/recipes-shells/tcsh/tcsh_6.22.04.bb @@ -20,7 +20,7 @@ EXTRA_OEMAKE += "CC_FOR_GETHOST='${BUILD_CC}'" inherit autotools do_compile:prepend() { - oe_runmake CC_FOR_GETHOST='${BUILD_CC}' CFLAGS='${BUILD_CFLAGS}' gethost + oe_runmake CC_FOR_GETHOST='${BUILD_CC}' CFLAGS='${BUILD_CFLAGS}' LDFLAGS='${BUILD_LDFLAGS}' gethost } do_install:append () {