From: Charles Wilson Date: Thu, 1 Jun 2006 18:42:06 +0000 (+0000) Subject: * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC) [ cygwin ]: X-Git-Tag: release-1-5-23b~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d02ab13af230c4dcc436d76e0a22375f43f27e8f;p=thirdparty%2Flibtool.git * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC) [ cygwin ]: define DLL_EXPORT for PIC objects on cygwin. --- diff --git a/ChangeLog b/ChangeLog index c648443f6..738f711aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-01 Charles Wilson + + * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC) [ cygwin ]: + define DLL_EXPORT for PIC objects on cygwin. + 2006-05-19 Gary V. Vaughan * libtool.m4 (LT_AC_PROG_SED): AC_SUBST([SED]) for diff --git a/libtool.m4 b/libtool.m4 index 779ea8a1e..eed228918 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -4886,12 +4886,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*) @@ -5167,13 +5169,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' ;; @@ -5241,7 +5245,7 @@ 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). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'