summaryrefslogtreecommitdiff
path: root/binutils/dlltool.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2007-02-02 13:59:54 +0000
committerH.J. Lu <hjl@lucon.org>2007-02-02 13:59:54 +0000
commit9414e04f9333ea08ff3c3f3e765d46a99bf17210 (patch)
tree32a7b0de408c449914ff6b898a4297f06039b716 /binutils/dlltool.c
parent22eba4bfe4aa74c194d2e50f7d24dd387d1b45d4 (diff)
downloadbinutils-redhat-9414e04f9333ea08ff3c3f3e765d46a99bf17210.tar.gz
2076-02-02 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/3945 * configure.in (DLLTOOL_DEFAULT): New. Defined for the first PE target. (DLLTOOL_DEFS): Add $DLLTOOL_DEFAULT. * configure: Regenerated. * dlltool.c (mname): Defined with DLLTOOL_DEFAULT_XXX.
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r--binutils/dlltool.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index 8a449a0e13..803383ceb8 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -387,41 +387,43 @@ static int verbose;
static FILE *output_def;
static FILE *base_file;
-#ifdef DLLTOOL_ARM
-#if defined(DLLTOOL_ARM_EPOC)
-static const char *mname = "arm-epoc";
-#elif defined(DLLTOOL_ARM_WINCE)
-static const char *mname = "arm-wince";
-#else
+#ifdef DLLTOOL_DEFAULT_ARM
static const char *mname = "arm";
#endif
+
+#ifdef DLLTOOL_DEFAULT_ARM_EPOC
+static const char *mname = "arm-epoc";
+#endif
+
+#ifdef DLLTOOL_DEFAULT_ARM_WINCE
+static const char *mname = "arm-wince";
#endif
-#ifdef DLLTOOL_I386
+#ifdef DLLTOOL_DEFAULT_I386
static const char *mname = "i386";
#endif
-#ifdef DLLTOOL_MX86_64
+#ifdef DLLTOOL_DEFAULT_MX86_64
static const char *mname = "i386:x86-64";
#endif
-#ifdef DLLTOOL_PPC
+#ifdef DLLTOOL_DEFAULT_PPC
static const char *mname = "ppc";
#endif
-#ifdef DLLTOOL_SH
+#ifdef DLLTOOL_DEFAULT_SH
static const char *mname = "sh";
#endif
-#ifdef DLLTOOL_MIPS
+#ifdef DLLTOOL_DEFAULT_MIPS
static const char *mname = "mips";
#endif
-#ifdef DLLTOOL_MCORE
+#ifdef DLLTOOL_DEFAULT_MCORE
static const char * mname = "mcore-le";
#endif
-#ifdef DLLTOOL_MCORE_ELF
+#ifdef DLLTOOL_DEFAULT_MCORE_ELF
static const char * mname = "mcore-elf";
static char * mcore_elf_out_file = NULL;
static char * mcore_elf_linker = NULL;