From: J. Ali Harlow Date: Wed, 22 Apr 2015 12:09:42 +0000 (+0100) Subject: Add -lole32 to link libraries. X-Git-Tag: 0.6.1~1 X-Git-Url: http://project.juiblex.co.uk/git/?a=commitdiff_plain;h=4b798e5197541cb22d10d9946cbb174cfb39665c;p=razor2.git%2F.git 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' --- diff --git a/configure.ac b/configure.ac index 2f1761a..f445721 100644 --- a/configure.ac +++ b/configure.ac @@ -83,7 +83,7 @@ AC_MSG_CHECKING([for Microsoft Windows native API]) case $host_os in *mingw*) AC_DEFINE([MSWIN_API], 1, [Define to 1 to use Microsoft Windows native API.]) - EXTRA_LIBS='-lshlwapi -lshell32 -lws2_32' + EXTRA_LIBS='-lshlwapi -lshell32 -lws2_32 -lole32' mswin_api=yes;; *) mswin_api=no;; esac