(patch) dllwrap tweak
Mumit Khan
khan@nanotech.wisc.edu
Mon Jan 3 12:00:00 GMT 2000
Minor tweak to fix problem caused by Cygwin's target change from
ix86-pc-cygwin32 to ix86-pc-cygwin. Also use 32 from MINGW32 looking
at future, and for consistency.
1999-12-23 Mumit Khan <khan@xraylith.wisc.edu>
* dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
(main): Use. Don't look for "32" in cygwin and mingw target names.
Index: dllwrap.c
===================================================================
RCS file: /homes/khan/src/CVSROOT/binutils-19990911/binutils/dllwrap.c,v
retrieving revision 1.1.1.1
diff -u -3 -p -r1.1.1.1 dllwrap.c
--- dllwrap.c 1999/12/23 07:19:35 1.1.1.1
+++ dllwrap.c 1999/12/23 08:12:11
@@ -94,7 +94,7 @@ static char *target = TARGET;
typedef enum {
UNKNOWN_TARGET,
CYGWIN_TARGET,
- MINGW32_TARGET
+ MINGW_TARGET
}
target_type;
@@ -830,10 +830,10 @@ main (argc, argv)
}
/* set the target platform. */
- if (strstr (target, "cygwin32"))
+ if (strstr (target, "cygwin"))
which_target = CYGWIN_TARGET;
- else if (strstr (target, "mingw32"))
- which_target = MINGW32_TARGET;
+ else if (strstr (target, "mingw"))
+ which_target = MINGW_TARGET;
else
which_target = UNKNOWN_TARGET;
@@ -869,7 +869,7 @@ main (argc, argv)
driver_flags = cygwin_driver_flags;
break;
- case MINGW32_TARGET:
+ case MINGW_TARGET:
driver_flags = mingw32_driver_flags;
break;
@@ -890,7 +890,7 @@ main (argc, argv)
entry_point = "__cygwin_dll_entry@12";
break;
- case MINGW32_TARGET:
+ case MINGW_TARGET:
entry_point = "_DllMainCRTStartup@12";
break;
More information about the Binutils
mailing list