diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-02-11 18:09:26 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-02-11 18:10:25 -0800 |
commit | 3e2f329e94830e7c1861c590f661c25f7465bb7c (patch) | |
tree | d5f323de0646c754c8e3ddb44a7ce37fd4f1d729 /libbacktrace | |
parent | 467a48205279cab368dbeb02879bbbbe4b721516 (diff) | |
download | gcc-3e2f329e94830e7c1861c590f661c25f7465bb7c.tar.gz |
libbacktrace: check for objcopy --add-gnu-debuglink using --help
* configure.ac: Check for objcopy --add-gnu-debuglink by using
objcopy --help.
* configure: Regenerate
Diffstat (limited to 'libbacktrace')
-rwxr-xr-x | libbacktrace/configure | 3 | ||||
-rw-r--r-- | libbacktrace/configure.ac | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/libbacktrace/configure b/libbacktrace/configure index 1c189b2e2f6..9b66bf5563a 100755 --- a/libbacktrace/configure +++ b/libbacktrace/configure @@ -13796,8 +13796,7 @@ else libbacktrace_cv_objcopy_debuglink=no elif ! test -n "${OBJCOPY}"; then libbacktrace_cv_objcopy_debuglink=no -elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then - rm -f /tmp/ls$$ +elif ${OBJCOPY} --help | fgrep add-gnu-debuglink >/dev/null 2>&1; then libbacktrace_cv_objcopy_debuglink=yes else libbacktrace_cv_objcopy_debuglink=no diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac index 83d4733509a..43a33a66b82 100644 --- a/libbacktrace/configure.ac +++ b/libbacktrace/configure.ac @@ -500,8 +500,7 @@ AC_CACHE_CHECK([whether objcopy supports debuglink], libbacktrace_cv_objcopy_debuglink=no elif ! test -n "${OBJCOPY}"; then libbacktrace_cv_objcopy_debuglink=no -elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then - rm -f /tmp/ls$$ +elif ${OBJCOPY} --help | fgrep add-gnu-debuglink >/dev/null 2>&1; then libbacktrace_cv_objcopy_debuglink=yes else libbacktrace_cv_objcopy_debuglink=no |