Modified:
/trunk/lib/build/gendef/build_gendef.txt
/trunk/lib/build/gendef/config.h
/trunk/lib/build/gendef/gendef.exe
/trunk/lib/build/gendef/libmangle.a
/trunk/lib/build/gendef/src/gendef.c
=======================================
--- /trunk/lib/build/gendef/build_gendef.txt Thu Oct 7 22:50:09 2010
+++ /trunk/lib/build/gendef/build_gendef.txt Thu May 19 00:53:04 2011
@@ -1,2 +1,7 @@
-export
PATH=/home/oracle/gcc-4.5-w32_i686-linux/bin:/usr/sbin:/usr/bin:/sbin:/bin
+export PATH=${HOME}/gcc-4.6-windows-linux/bin:/usr/sbin:/usr/bin:/sbin:/bin
+
+mingw-w64-libraries/libmangle$ CFLAGS="-O2 -flto" ./configure
--host=i686-w64-mingw32
+
+mingw-w64-tools/gendef$ CFLAGS="-flto" ./configure --host=i686-w64-mingw32
--with-mangle=path/to/libmangle
+
i686-w64-mingw32-gcc -Werror -Wall -Wextra -march=core2 -mno-sse3
-mtune=generic -pipe -O2 -funroll-loops -ftree-vectorize -s -DHAVE_CONFIG_H
-I. -o gendef.exe src/gendef.c src/gendef_def.c src/compat_string.c
src/fsredir.c -L. -lmangle
=======================================
--- /trunk/lib/build/gendef/config.h Thu Oct 7 22:50:09 2010
+++ /trunk/lib/build/gendef/config.h Thu May 19 00:53:04 2011
@@ -11,7 +11,7 @@
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `memset' function. */
-#define HAVE_MEMSET 1
+/* #undef HAVE_MEMSET */
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
@@ -20,7 +20,7 @@
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strdup' function. */
-#define HAVE_STRDUP 1
+/* #undef HAVE_STRDUP */
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
@@ -29,10 +29,10 @@
#define HAVE_STRING_H 1
/* Define to 1 if you have the `strlwr' function. */
-#define HAVE_STRLWR 1
+/* #undef HAVE_STRLWR */
/* Define to 1 if you have the `strrchr' function. */
-#define HAVE_STRRCHR 1
+/* #undef HAVE_STRRCHR */
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
=======================================
--- /trunk/lib/build/gendef/gendef.exe Thu Oct 7 22:50:09 2010
+++ /trunk/lib/build/gendef/gendef.exe Thu May 19 00:53:04 2011
Binary file, no diff available.
=======================================
--- /trunk/lib/build/gendef/libmangle.a Thu Oct 7 22:50:09 2010
+++ /trunk/lib/build/gendef/libmangle.a Thu May 19 00:53:04 2011
Binary file, no diff available.
=======================================
--- /trunk/lib/build/gendef/src/gendef.c Thu Oct 7 22:50:09 2010
+++ /trunk/lib/build/gendef/src/gendef.c Thu May 19 00:53:04 2011
@@ -88,7 +88,6 @@
#endif
static int std_output = 0;
-static int no_waring = 0;
static int assume_stdcall = 0; /* Set to one, if function symbols should
be assumed to have stdcall. */
static int no_forward_output = 0; /* Set to one, if in .def files
forwarders shouldn't be displayed. */
@@ -117,11 +116,6 @@
assume_stdcall = 1;
return 0;
}
- if (!strcmp (opts, "--no-waring") || !strcmp (opts, "-n"))
- {
- no_waring = 1;
- return 0;
- }
if (!strcmp (opts, "--include-def-path") || !strcmp (opts, "-I"))
{
if (!next)
@@ -192,7 +186,6 @@
" -h, --help Show this help.\n"
" -a, --assume-stdcall Assume functions with ambiguous call\n"
" convention as stdcall.\n"
- " -n, --no-waring Do not print warning in .def file\n"
" -I, --include-def-path <path>\n"
" Add additional search paths to find\n"
" hint .def files.\n"
@@ -723,19 +716,16 @@
}
else if (pimpname)
{
- if (no_waring != 0)
- fprintf (fp, " ; Check!!! forwards to %s in %s (ordinal %u)",
- pimpname->name, pimpname->dll, pimpname->ord);
+ fprintf (fp, " ; Check!!! forwards to %s in %s (ordinal %u)",
+ pimpname->name, pimpname->dll, pimpname->ord);
}
else if (exp->func == 0 && !exp->beData)
{
- if (no_waring != 0)
- fprintf (fp, " ; Check!!! forwards to %s", exp->forward);
+ fprintf (fp, " ; Check!!! forwards to %s", exp->forward);
}
else if (seen_ret == 0 && !exp->beData)
{
- if (no_waring != 0)
- fprintf (fp, " ; Check!!! Couldn't determine function argument
count. Function doesn't return. ");
+ fprintf (fp, " ; Check!!! Couldn't determine function argument count.
Function doesn't return. ");
}
fprintf(fp,"\n");
free (exp);