perl-cross: bump to version 1.1.4
[buildroot-gz.git] / package / skalibs / 0003-Make-linker-use-dummy-file-when-testing-libs.patch
blobef0e173b91393346f356e232de1fe50bc264bbce
1 From da293110f429e1206728c1551cf0f6b462b3d8c0 Mon Sep 17 00:00:00 2001
2 From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
3 Date: Thu, 29 Dec 2016 19:36:24 +0100
4 Subject: [PATCH] Make linker use dummy file when testing libs
6 For some architectures, like Xtensa or HPPA, ld from binutils requires
7 the output file to be a regular file, as mentioned in a bug report on
8 the mailing list [1].
10 So, use a dummy file as output file for ld in trylibs(), instead of
11 /dev/null.
13 [1] https://sourceware.org/bugzilla/show_bug.cgi?id=19526
15 Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
16 ---
17 configure | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
20 diff --git a/configure b/configure
21 index 1579025..12980fb 100755
22 --- a/configure
23 +++ b/configure
24 @@ -173,7 +173,7 @@ trylibs () {
25 echo "Checking whether system has $2..." >&3
26 shift 2
27 if $CC_AUTO $CPPFLAGS_AUTO $CFLAGS_AUTO -c -o try$name.o src/sysdeps/try$name.c 2>/dev/null ; then
28 - until $CC_AUTO $CFLAGS_AUTO $LDFLAGS_AUTO -o /dev/null try$name.o $args 2>/dev/null ; do
29 + until $CC_AUTO $CFLAGS_AUTO $LDFLAGS_AUTO -o try$name try$name.o $args 2>/dev/null ; do
30 if test -z "$*" ; then
31 rm -f try$name.o
32 echo
33 @@ -189,7 +189,7 @@ trylibs () {
34 else
35 echo " ... yes, with$args" >&3
37 - rm -f try$name.o
38 + rm -f try$name.o try$name
39 return 0
40 else
41 echo
42 --
43 2.4.11