From: Peter Rosin Date: Fri, 17 Sep 2010 14:15:04 +0000 (+0200) Subject: Copy over DLL_EXPORT handling from C to C++ for non-GCC on w32. X-Git-Tag: v2.4~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a93b8481087b3eb9675ea9e6ca15b09e7e6901ae;p=thirdparty%2Flibtool.git Copy over DLL_EXPORT handling from C to C++ for non-GCC on w32. * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [mingw, cygwin, os2] [pw32, cegcc]: Copy over the DLL_EXPORT handling from C to C++. Signed-off-by: Peter Rosin --- diff --git a/ChangeLog b/ChangeLog index 326b65840..514a20e72 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-09-17 Peter Rosin + + Copy over DLL_EXPORT handling from C to C++ for non-GCC on w32. + * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [mingw, cygwin, os2] + [pw32, cegcc]: Copy over the DLL_EXPORT handling from C to C++. + 2010-09-17 Ralf Wildenhues LTO: consistently accept -fwhopr* and -flto* for GCC. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 1a5b85dda..a8b07bfdd 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -3873,6 +3873,12 @@ m4_if([$1], [CXX], [ ;; esac ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; dgux*) case $cc_basename in ec++*)