Apply real-objdump patch.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 17 Nov 2008 13:06:10 +0000 (13:06 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 17 Nov 2008 13:06:10 +0000 (13:06 +0000)
flexdll/mingw32-flexdll-0.11-real-objdump.patch [new file with mode: 0644]
flexdll/mingw32-flexdll.spec

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
index 6e232b3..ebab072 100644 (file)
@@ -11,7 +11,7 @@
 
 Name:           mingw32-flexdll
 Version:        0.11
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        FlexDLL Windows DLL plugin API which is like dlopen
 
 License:        zlib
@@ -25,6 +25,7 @@ Source1:        flexlink.exe
 Patch1000:      mingw32-flexdll-0.11-mingw-cross.patch
 Patch1001:      mingw32-flexdll-0.11-no-cygpath.patch
 Patch1002:      mingw32-flexdll-0.11-no-directory.patch
+Patch1003:      mingw32-flexdll-0.11-real-objdump.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -75,6 +76,7 @@ make it easy to port applications developed for Unix.
 %patch1000 -p1
 %patch1001 -p1
 %patch1002 -p1
+%patch1003 -p1
 
 for f in CHANGES LICENSE README; do
   chmod -x $f
@@ -131,6 +133,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 0.11-8
+- Apply real-objdump patch.
+
 * Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.11-7
 - Apply no-directory patch.