1From 4a557f242a76c6a2a3134acf1d3279818f8ab371 Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Fri, 23 Jul 2021 09:50:36 +0200 4Subject: [PATCH] configure: fix check_link_silent test 5 6Replace -o /dev/null by -o "$tmpc".out when testing with 7check_link_silent otherwise test will fail with some bugged binutils 8(https://sourceware.org/bugzilla/show_bug.cgi?id=19526) since version 94.13 and 10https://github.com/rofl0r/proxychains-ng/commit/35a674bdbc294730429a1007c9e7ce01e65b49b5: 11 12checking what's the option to use in linker to set library name ... 13cannot find an option to set library name 14package/pkg-generic.mk:249: recipe for target '/home/buildroot/autobuild/instance-2/output-1/build/proxychains-ng-4.14/.stamp_configured' failed 15 16Fixes: 17 - http://autobuild.buildroot.org/results/9320d9b2c69882e23bbe7b30057eb8bee0c9d2e5 18 19Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 20[Upstream status: https://github.com/rofl0r/proxychains-ng/pull/387] 21--- 22 configure | 3 ++- 23 1 file changed, 2 insertions(+), 1 deletion(-) 24 25diff --git a/configure b/configure 26index 8b21b97..cfe19e7 100755 27--- a/configure 28+++ b/configure 29@@ -49,7 +49,8 @@ check_compile_run() { 30 31 check_link_silent() { 32 printf "$2" > "$tmpc" 33- $CC $OUR_CPPFLAGS $CPPFLAGS $1 $CFLAGS "$tmpc" -o /dev/null >/dev/null 2>&1 34+ $CC $OUR_CPPFLAGS $CPPFLAGS $1 $CFLAGS "$tmpc" -o "$tmpc".out >/dev/null 2>&1 35+ rm -f "$tmpc".out 36 } 37 38 check_link() { 39-- 402.30.2 41 42