]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [ mingw, cygwin ]
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 16 Aug 2007 18:22:03 +0000 (18:22 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 16 Aug 2007 18:22:03 +0000 (18:22 +0000)
<GCJ>: Do not use -DDLL_EXPORT.
Report by Ross Ridge <rridge@csclub.uwaterloo.ca>.

ChangeLog
libltdl/m4/libtool.m4

index 2865d626545276e74075a039e3236494040bf7fd..5e80ff12edf5003ae53571c5ea6471c22969f972 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-08-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [ mingw, cygwin ]
+       <GCJ>: Do not use -DDLL_EXPORT.
+       Report by Ross Ridge <rridge@csclub.uwaterloo.ca>.
+
        * Makefile.am (edit): Do not warn against manual editing for the
        generated files libtool, libtoolize, libltdl/m4/ltversion.m4,
        tests/defs, as they are still in a preferred source code form as
index 38f7d8589e98008dca1d963e7d9d735dcd0af389..092b9acc6b08da870888f7584076a5784f593f84 100644 (file)
@@ -3426,7 +3426,8 @@ m4_if([$1], [CXX], [
       # built for inclusion in a dll (and should export symbols for example).
       # Although the cygwin gcc ignores -fPIC, still need this for old-style
       # (--disable-auto-import) libraries
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
+      m4_if([$1], [GCJ], [],
+       [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
       ;;
     darwin* | rhapsody*)
       # PIC is the default on this platform
@@ -3722,7 +3723,8 @@ m4_if([$1], [CXX], [
       # built for inclusion in a dll (and should export symbols for example).
       # Although the cygwin gcc ignores -fPIC, still need this for old-style
       # (--disable-auto-import) libraries
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
+      m4_if([$1], [GCJ], [],
+       [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
       ;;
 
     darwin* | rhapsody*)
@@ -3798,7 +3800,8 @@ m4_if([$1], [CXX], [
     mingw* | cygwin* | pw32* | os2*)
       # 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).
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
+      m4_if([$1], [GCJ], [],
+       [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
       ;;
 
     hpux9* | hpux10* | hpux11*)