--- /dev/null
+Don't recognize directories as libraries. eg. If we have system
+libvirt and OCaml bindings in $OCAML_LIB_DIR/libvirt, then we don't
+want '-lvirt' to "discover" the OCaml bindings directory.
+
+diff -ur flexdll/reloc.ml flexdll.mingw/reloc.ml
+--- flexdll/reloc.ml 2008-11-16 18:41:01.000000000 +0000
++++ flexdll.mingw/reloc.ml 2008-11-16 18:39:18.000000000 +0000
+@@ -109,7 +109,7 @@
+ Filename.dirname (get_output1 (Printf.sprintf "i686-pc-mingw32-gcc %s-print-libgcc-file-name" extra))\r
+ \r
+ let file_exists fn =\r
+- if Sys.file_exists fn then Some fn\r
++ if Sys.file_exists fn && not (Sys.is_directory fn) then Some fn\r
+ else if !use_cygpath && Sys.file_exists (fn ^ ".lnk") then\r
+ Some (get_output1 (Printf.sprintf "cygpath -m %s" fn))\r
+ else None\r
Name: mingw32-flexdll
Version: 0.11
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: FlexDLL Windows DLL plugin API which is like dlopen
License: zlib
# Patches for MinGW:
Patch1000: mingw32-flexdll-0.11-mingw-cross.patch
Patch1001: mingw32-flexdll-0.11-no-cygpath.patch
+Patch1002: mingw32-flexdll-0.11-no-directory.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%patch1000 -p1
%patch1001 -p1
+%patch1002 -p1
for f in CHANGES LICENSE README; do
chmod -x $f
%changelog
+* Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.11-7
+- Apply no-directory patch.
+
* Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.11-6
- Permanently disable cygpath (avoids 'NUL' file being created).