[Libreoffice-commits] core.git: configure.ac
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Feb 27 07:32:10 UTC 2019
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 1a5c76c16a1b763fc306c80c2a40d560b0d6610a
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Feb 26 21:37:58 2019 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Feb 27 08:31:43 2019 +0100
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 at redhat.com>
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"
More information about the Libreoffice-commits
mailing list