0001-configure-fix-check_link_silent-test.patch 1.4 KB

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