Add -lole32 to link libraries.
This fixes a problem when compiling with mingw-headers version 3.3
where the use of SHGetFolderPath() expands to a call to CoTaskMemFree()
which is defined in libole32.dll:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/shobjidl.h:29954: undefined reference to `__imp_CoTaskMemFree'
1 %define _source_payload w9.gzdio
2 %define _binary_payload w9.gzdio
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
22 mkdir -p %{buildroot}%{_sysconfdir}
23 mkdir -p %{buildroot}/{%{_bindir},%{_prefix}/lib,%{_includedir}}
24 mkdir -p %{buildroot}/media
30 function mkdir_missing(dir)
31 if posix.stat(dir) == nil then
35 mkdir_missing("/media/cdrom")
38 %defattr(0755,root,root)