]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Copy over DLL_EXPORT handling from C to C++ for non-GCC on w32.
authorPeter Rosin <peda@lysator.liu.se>
Fri, 17 Sep 2010 14:15:04 +0000 (16:15 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Fri, 17 Sep 2010 20:25:45 +0000 (22:25 +0200)
* 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>
ChangeLog
libltdl/m4/libtool.m4

index 326b6584072105d2c0a4c601863b61a35ddae38f..514a20e720051ea90ea19d217507b483cc78aa23 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index 1a5b85dda31c82902e892556a472d4bf335051f1..a8b07bfddcff102dc1b5851a0d7cfa93d01d21e1 100644 (file)
@@ -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++*)