From: Ralf Wildenhues Date: Thu, 16 Aug 2007 18:22:03 +0000 (+0000) Subject: * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [ mingw, cygwin ] X-Git-Tag: release-2-1b~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b4f78796332d1cfd23aec05d8d7118bac5f734c5;p=thirdparty%2Flibtool.git * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [ mingw, cygwin ] : Do not use -DDLL_EXPORT. Report by Ross Ridge . --- diff --git a/ChangeLog b/ChangeLog index 2865d6265..5e80ff12e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-08-16 Ralf Wildenhues + * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [ mingw, cygwin ] + : Do not use -DDLL_EXPORT. + Report by Ross Ridge . + * 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 diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 38f7d8589..092b9acc6 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -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*)