diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-02-26 21:37:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-02-27 08:31:43 +0100 |
commit | 1a5c76c16a1b763fc306c80c2a40d560b0d6610a (patch) | |
tree | aaf9611726baead0ffdddef272e05e6afa705918 /configure.ac | |
parent | bf03f0b9b7f1dfc054c0d985f38147c4e875bd9f (diff) |
Don't leave a stray a.out behind
Change-Id: I20acdccd1faa7b8edf7a5786be124ae063ebca67
Reviewed-on: https://gerrit.libreoffice.org/68405
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3b28ca40cef1..a3855d24546e 100644 --- a/configure.ac +++ b/configure.ac @@ -3915,7 +3915,8 @@ if test "$enable_ld" != "no"; then else check_use_ld gold fi - ld_output=$(echo 'int main() { return 0; }' | $CC -Wl,-v -x c - $CFLAGS $LDFLAGS 2>/dev/null) + ld_output=$(echo 'int main() { return 0; }' | $CC -Wl,-v -x c -o conftest.out - $CFLAGS $LDFLAGS 2>/dev/null) + rm conftest.out ld_used=$(echo "$ld_output" | grep -E '(^GNU gold|^GNU ld|^LLD)') if test -z "$ld_used"; then ld_used="unknown" |