From: Simon Rozman Date: Tue, 1 Jan 2019 23:35:47 +0000 (+0100) Subject: Strip _stdcall suffixes (@nn) for 32-bit builds X-Git-Tag: v2.5_beta1~351 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9f1605194281a6103d889298d4f303f94bc9d96;p=thirdparty%2Fopenvpn.git Strip _stdcall suffixes (@nn) for 32-bit builds This makes DLL exported function names consistent between 32 and 64-bit builds. Signed-off-by: Simon Rozman Acked-by: Gert Doering Message-Id: <20190101233547.10100-1-simon@rozman.si> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18077.html Signed-off-by: Gert Doering --- diff --git a/src/openvpnmsica/Makefile.am b/src/openvpnmsica/Makefile.am index f00a01d80..db8502b80 100644 --- a/src/openvpnmsica/Makefile.am +++ b/src/openvpnmsica/Makefile.am @@ -2,7 +2,7 @@ # openvpnmsica -- Custom Action DLL to provide OpenVPN-specific support to MSI packages # # Copyright (C) 2002-2018 OpenVPN Inc -# Copyright (C) 2018 Simon Rozman +# Copyright (C) 2018-2019 Simon Rozman # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 @@ -40,7 +40,8 @@ lib_LTLIBRARIES = libopenvpnmsica.la libopenvpnmsica_la_CFLAGS = \ -municode -D_UNICODE \ -UNTDDI_VERSION -U_WIN32_WINNT \ - -D_WIN32_WINNT=_WIN32_WINNT_VISTA + -D_WIN32_WINNT=_WIN32_WINNT_VISTA \ + -Wl,--kill-at libopenvpnmsica_la_LDFLAGS = -ladvapi32 -lole32 -lmsi -lsetupapi -liphlpapi -lshell32 -lshlwapi -lversion -no-undefined -avoid-version endif