aboutsummaryrefslogtreecommitdiff
path: root/libtool.m4
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2008-02-16 15:26:46 +0000
committerPaolo Bonzini <bonzini@gnu.org>2008-02-16 15:26:46 +0000
commiteaf19029ad413850b96f97c01078e2ec567730c8 (patch)
tree02bc1d558cfea3738e34a8ec01b4ff7b6deb88a4 /libtool.m4
parentd74e4b29eb05f085026bd9eb93f1aa6e70bc5b1b (diff)
downloadgdb-eaf19029ad413850b96f97c01078e2ec567730c8.zip
gdb-eaf19029ad413850b96f97c01078e2ec567730c8.tar.gz
gdb-eaf19029ad413850b96f97c01078e2ec567730c8.tar.bz2
2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR libgcj/33085 * libtool.m4 (_LT_COMPILER_PIC) [ mingw, cygwin ] <GCJ>: Do not use -DDLL_EXPORT. Backport from upstream.
Diffstat (limited to 'libtool.m4')
-rw-r--r--libtool.m49
1 files changed, 6 insertions, 3 deletions
diff --git a/libtool.m4 b/libtool.m4
index ddc4b11..e86cd02 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*)