From a93b8481087b3eb9675ea9e6ca15b09e7e6901ae Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Fri, 17 Sep 2010 16:15:04 +0200 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ libltdl/m4/libtool.m4 | 6 ++++++ 2 files changed, 12 insertions(+) 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++*) -- 2.47.2