2017-06-25 21:26:13 +02:00
|
|
|
From 4d9aca413b42191223d8dc2ba9b4f943ee90c94b Mon Sep 17 00:00:00 2001
|
2016-12-30 22:55:10 +01:00
|
|
|
From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
|
|
|
Date: Thu, 29 Dec 2016 19:36:24 +0100
|
|
|
|
Subject: [PATCH] Make linker use dummy file when testing libs
|
|
|
|
|
|
|
|
For some architectures, like Xtensa or HPPA, ld from binutils requires
|
|
|
|
the output file to be a regular file, as mentioned in a bug report on
|
|
|
|
the mailing list [1].
|
|
|
|
|
|
|
|
So, use a dummy file as output file for ld in trylibs(), instead of
|
|
|
|
/dev/null.
|
|
|
|
|
|
|
|
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=19526
|
|
|
|
|
|
|
|
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
|
|
|
---
|
|
|
|
configure | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/configure b/configure
|
2017-06-25 21:26:13 +02:00
|
|
|
index 115fea3..7d38447 100755
|
2016-12-30 22:55:10 +01:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2017-06-25 21:26:13 +02:00
|
|
|
@@ -226,7 +226,7 @@ trylibs () {
|
2016-12-30 22:55:10 +01:00
|
|
|
echo "Checking whether system has $2..." >&3
|
|
|
|
shift 2
|
|
|
|
if $CC_AUTO $CPPFLAGS_AUTO $CFLAGS_AUTO -c -o try$name.o src/sysdeps/try$name.c 2>/dev/null ; then
|
|
|
|
- until $CC_AUTO $CFLAGS_AUTO $LDFLAGS_AUTO -o /dev/null try$name.o $args 2>/dev/null ; do
|
|
|
|
+ until $CC_AUTO $CFLAGS_AUTO $LDFLAGS_AUTO -o try$name try$name.o $args 2>/dev/null ; do
|
|
|
|
if test -z "$*" ; then
|
|
|
|
rm -f try$name.o
|
|
|
|
echo
|
2017-06-25 21:26:13 +02:00
|
|
|
@@ -242,7 +242,7 @@ trylibs () {
|
2016-12-30 22:55:10 +01:00
|
|
|
else
|
|
|
|
echo " ... yes, with$args" >&3
|
|
|
|
fi
|
|
|
|
- rm -f try$name.o
|
|
|
|
+ rm -f try$name.o try$name
|
|
|
|
return 0
|
|
|
|
else
|
|
|
|
echo
|
|
|
|
--
|
2017-06-25 21:26:13 +02:00
|
|
|
2.9.3
|
2016-12-30 22:55:10 +01:00
|
|
|
|