* 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 <peda@lysator.liu.se>
+2010-09-17 Peter Rosin <peda@lysator.liu.se>
+
+ 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 <Ralf.Wildenhues@gmx.de>
LTO: consistently accept -fwhopr* and -flto* for GCC.
;;
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++*)