diff options
author | rwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-16 03:57:53 +0000 |
---|---|---|
committer | rwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-16 03:57:53 +0000 |
commit | 69d30e890f48c6e95a821dd91b653263d6e168c2 (patch) | |
tree | 9e4c2d131b67e1effd03e0201e63701cfc40723c /libtool.m4 | |
parent | a81d4cba187afe7d9bb40cc112c7dba35dffdfaf (diff) | |
download | gcc-69d30e890f48c6e95a821dd91b653263d6e168c2.tar.gz |
PR libgcj/33085
* libtool.m4 (_LT_COMPILER_PIC) [ mingw, cygwin ] <GCJ>:
Do not use -DDLL_EXPORT. Backport from upstream.
libjava/
PR libgcj/33085
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132362 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libtool.m4')
-rw-r--r-- | libtool.m4 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libtool.m4 b/libtool.m4 index ddc4b1189c7..e86cd0249b1 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -3419,7 +3419,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 @@ -3715,7 +3716,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*) @@ -3791,7 +3793,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*) |