diff options
author | Alexey Neyman <stilor@att.net> | 2018-12-03 23:50:48 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2018-12-03 23:50:48 -0800 |
commit | f4238194a211a6a27598a7fdf9ad63f9b5d6fbaa (patch) | |
tree | cdf77d24f3ea44f4d671edc048f1a36205ef8c29 /gold/configure.ac | |
parent | 314a80c41d52737c9cfdc80dc2f6f56e0d5cfd96 (diff) | |
download | binutils-f4238194a211a6a27598a7fdf9ad63f9b5d6fbaa.zip binutils-f4238194a211a6a27598a7fdf9ad63f9b5d6fbaa.tar.gz binutils-f4238194a211a6a27598a7fdf9ad63f9b5d6fbaa.tar.bz2 |
Restore build on x86_64-w64-mingw32.
gold/
PR gold/23594
* configure.ac: Add checks for link, mkdtemp.
* configure: Regenerate.
* config.in: Regenerate.
* plugin.cc (Plugin_recorder::init): Fall back to mktemp
if mkdtemp is not available.
(link_or_copy_file): Fall back to copy if link() is not available.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r-- | gold/configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/configure.ac b/gold/configure.ac index d9a1869..6ab43b9 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -529,7 +529,7 @@ LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" AC_SUBST(LFS_CFLAGS) AC_CHECK_HEADERS(sys/mman.h) -AC_CHECK_FUNCS(chsize mmap) +AC_CHECK_FUNCS(chsize mmap link) AC_REPLACE_FUNCS(pread ftruncate ffsll) AC_CACHE_CHECK([mremap with MREMAP_MAYMOVE], [gold_cv_lib_mremap_maymove], @@ -613,7 +613,7 @@ case "$ac_cv_search_dlopen" in esac AC_SUBST(DLOPEN_LIBS) -AC_CHECK_FUNCS(mallinfo posix_fallocate fallocate readv sysconf times) +AC_CHECK_FUNCS(mallinfo posix_fallocate fallocate readv sysconf times mkdtemp) AC_CHECK_DECLS([basename, ffs, asprintf, vasprintf, snprintf, vsnprintf, strverscmp, strndup, memmem]) # Use of ::std::tr1::unordered_map::rehash causes undefined symbols |