summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Drake <dan@reactivated.net>2010-09-19 14:21:01 +0100
committerDaniel Drake <dan@reactivated.net>2010-09-19 15:09:17 +0100
commitbd623f70d99fad8b975f8d4ee62ea4b1abf1272f (patch)
tree05047929f588535a6c2c90cb13a9f2be16f115f4 /configure.ac
parent29f9f9e3af3340df6a955881a93caf9d2a6d08d6 (diff)
downloadlibusb-bd623f70d99fad8b975f8d4ee62ea4b1abf1272f.tar.gz
MinGW: Use --add-stdcall-alias linker option
Naming of symbols inside the library is inconsistent on Windows: http://wyw.dcweb.cn/stdcall.htm Use this linker option to add aliases which add compatibility with the "MSVC DLL" platform when a DEF file is used. It also better matches the appearance of the Windows API itself.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 39b11f2..84c361d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,7 +55,7 @@ case $host in
threads="windows"
LIBS="-lsetupapi -lole32 -ladvapi32"
# -avoid-version to avoid a naming scheme such as libusb-0.dll
- AM_LDFLAGS="-no-undefined -avoid-version"
+ AM_LDFLAGS="-no-undefined -avoid-version --add-stdcall-alias"
AC_CHECK_TOOL(RC, windres, no)
;;
*-cygwin*)