This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] 2.31 breaks build of 'gold' for x86_64-w64-mingw32
- From: Cary Coutant <ccoutant at gmail dot com>
- To: stilor at att dot net
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 23 Oct 2018 18:03:02 -0700
- Subject: Re: [PATCH] 2.31 breaks build of 'gold' for x86_64-w64-mingw32
- References: <fea693af-38e8-393f-9699-d7b925aa501f@att.net>
> Patch attached. Replacement code for mkdtemp stolen from
> binutils/bucomm.c; link() call is just placed under an appropriate
> ifdef, as the function already has a fallback (copying the file).
+AC_CHECK_FUNCS(chsize mmap link)
...
AC_CHECK_FUNCS(mallinfo posix_fallocate fallocate readv sysconf times)
+AC_CHECK_FUNC([mkdtemp],
+ AC_DEFINE([HAVE_MKDTEMP], 1,
+ [Define to 1 if you have the `mkdtemp' function.]))
Is there a reason why you didn't just add mkdtemp to one of the
AC_CHECK_FUNCS macros?
-cary