[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Minor change for cygwin, libtool-1.5.22
From: |
Charles Wilson |
Subject: |
Minor change for cygwin, libtool-1.5.22 |
Date: |
Sun, 23 Apr 2006 17:31:35 -0400 |
User-agent: |
Thunderbird 1.5.0.2 (Windows/20060308) |
I ran across an issue when working with CVS gettext on cygwin. When
building objects destined for inclusion in a DLL (so-called PIC objects,
even tho all .o's are "position independent" on MSWin), cygwin ought to
define DLL_EXPORT just like mingw. Even though we don't really need to
for auto-import, there are projects that try to do things the Microsoft
Way with declspec, instead -- and use --disable-auto-import. As it
happens, gettext post-0.14.5 will be one of those.
--
Chuck
2006-04-22 Charles Wilson <address@hidden>
* libtool.m4: define DLL_EXPORT for PIC objects on cygwin
diff -urN -x .build -x .inst -x .sinst -x '*~' libtool-1.5.22-orig/libtool.m4
libtool-1.5.22/libtool.m4
--- libtool-1.5.22-orig/libtool.m4 2005-12-18 16:53:17.000000000 -0500
+++ libtool-1.5.22/libtool.m4 2006-04-19 01:16:17.234375000 -0400
@@ -4838,12 +4838,14 @@
# 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).
+ # Even tho PIC is default for cygwin, still need this for old-style
+ # (--disable-auto-import) libraries
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
;;
darwin* | rhapsody*)
@@ -5111,13 +5113,15 @@
_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).
+ # Even tho PIC is default for cygwin, still need this for old-style
+ # (--disable-auto-import) libraries
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
;;
@@ -5185,9 +5189,11 @@
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).
+ # Even tho PIC is default for cygwin, still need this for old-style
+ # (--disable-auto-import) libraries
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
;;
- Minor change for cygwin, libtool-1.5.22,
Charles Wilson <=