Apply real-objdump patch.
[fedora-mingw.git] / flexdll / mingw32-flexdll-0.11-real-objdump.patch
diff --git a/flexdll/mingw32-flexdll-0.11-real-objdump.patch b/flexdll/mingw32-flexdll-0.11-real-objdump.patch
new file mode 100644 (file)
index 0000000..7a731be
--- /dev/null
@@ -0,0 +1,11 @@
+--- flexdll/reloc.ml.orig      2008-11-17 12:59:13.000000000 +0000
++++ flexdll/reloc.ml   2008-11-17 12:59:21.000000000 +0000
+@@ -436,7 +436,7 @@
+       failwith "Creation of import library not supported for this toolchain"\r
+   | `CYGWIN | `MINGW ->\r
+       let dmp = temp_file "dyndll" ".dmp" in\r
+-      if cmd_verbose (Printf.sprintf "objdump -p %s > %s" fn dmp) <> 0\r
++      if cmd_verbose (Printf.sprintf "i686-pc-mingw32-objdump -p %s > %s" fn dmp) <> 0\r
+       then failwith "Error while extracting exports from a DLL";\r
+       parse_dll_exports dmp\r
\r