This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] 2.31 breaks build of 'gold' for x86_64-w64-mingw32


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]