summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-05-08 20:01:12 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:13:14 +0200
commita9f2a5a4f749eb6c3aeffc0bc17f0aa4511b71eb (patch)
tree0b68515439deb63a3c2ec8fa0737dfcf342c7f14 /m4
parentf280d3ecdfc8f85ac15994497b676a162833b471 (diff)
downloadexternal_gettext-a9f2a5a4f749eb6c3aeffc0bc17f0aa4511b71eb.zip
external_gettext-a9f2a5a4f749eb6c3aeffc0bc17f0aa4511b71eb.tar.gz
external_gettext-a9f2a5a4f749eb6c3aeffc0bc17f0aa4511b71eb.tar.bz2
On Cygwin, like on mingw, define DLL_EXPORT.
Diffstat (limited to 'm4')
-rw-r--r--m4/libtool.m416
1 files changed, 11 insertions, 5 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index c2c97e8..57a0e18 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -4857,12 +4857,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
# like `-m68040'.
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
;;
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
# PIC is the default for these OSes.
;;
- mingw* | os2* | pw32*)
+ mingw* | cygwin* | os2* | pw32*)
# 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).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
;;
darwin* | rhapsody*)
@@ -5136,13 +5138,15 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
;;
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
# PIC is the default for these OSes.
;;
- mingw* | pw32* | os2*)
+ 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).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
;;
@@ -5210,9 +5214,11 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
esac
;;
- mingw* | pw32* | os2*)
+ 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).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
;;