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'
9 $razor list-files | grep -x "$1" > /dev/null
11 echo $1: Not in database >&2
15 $razor list-files c: | grep -x "$1" > /dev/null
17 echo $1: Not seen by named root list >&2
18 $razor list-files c: >&2
21 $razor list-files "$1" | grep -x "$1" > /dev/null
23 echo $1: Not seen by patterned list >&2
24 $razor list-files "$1" >&2
27 pkgs=`$razor list-file-packages "$1"`
28 if [ -z "$pkgs" ]; then
29 echo $1: Not owned by any package >&2
30 $razor list-file-packages "$1"
33 for nevra in "$pkgs"; do
34 name=`echo $nevra | sed 's/\-.*$//'`
35 $razor list-package-files "$name" | grep -x "$1" > /dev/null
37 echo $1: Not in database for package $name >&2
38 $razor list-package-files "$name"
42 if [ ! -e "$RAZOR_ROOT$1" ]; then
43 echo $1: Not in filesystem >&2
47 tmpdir=`mktemp -dt` || exit 1
48 export RAZOR_ROOT="$tmpdir/x-"
49 mkdir -p "$tmpdir/x-/var/lib" "$tmpdir/x-c:"
50 export RAZOR_NO_ROOT_NAME_CHECKS=1
52 export YUM_URL="file://localhost/`pwd`"
53 $razor import-yum || exit 1
54 $razor install --relocate /usr=c:/test zap || exit 1
55 $razor install --relocate /usr=c:/test zip || exit 1
56 check_file c:/test/bin/zap
57 check_file c:/test/bin/zip