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]

[PATCH] Second mingw build fix for ld.


This is another fix for mingw ld builds.  If you use emultempl/elf32.em
when building ld and set HAVE_DOS_BASED_FILE_SYSTEM then this file uses
ISALPHA but does not include safe-ctype.h.

This patch includes safe-ctype.h, in theory we could ifdef the include
to only be done when HAVE_DOS_BASED_FILE_SYSTEM is defined but I think
it is easier/cleaner to just include the header all the time.

OK to checkin?

Steve Ellcey
sellcey@mips.com

2014-04-15  Steve Ellcey  <sellcey@mips.com>

	* elf32.em: Include safe-ctype.h.


diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 0173b66..31761ca 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -38,6 +38,7 @@ fragment <<EOF
 #include "sysdep.h"
 #include "bfd.h"
 #include "libiberty.h"
+#include "safe-ctype.h"
 #include "filenames.h"
 #include "getopt.h"
 #include <fcntl.h>


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