From: Charles Wilson Date: Thu, 1 Jun 2006 18:39:24 +0000 (+0000) Subject: * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [ cygwin ]: X-Git-Tag: release-2-1b~281 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e94e4f224950dd9708f92d8342502ff5486eee25;p=thirdparty%2Flibtool.git * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [ cygwin ]: define DLL_EXPORT for PIC objects on cygwin. --- diff --git a/ChangeLog b/ChangeLog index b2675ea61..15cf02865 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-01 Charles Wilson + + * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [ cygwin ]: + define DLL_EXPORT for PIC objects on cygwin. + 2006-05-24 Albert Chin * libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG) diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 31400e81c..4ef23e38e 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -3364,12 +3364,14 @@ m4_if([$1], [CXX], [ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' fi ;; - 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_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) @@ -3657,13 +3659,15 @@ m4_if([$1], [CXX], [ fi ;; - 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_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; @@ -3737,7 +3741,7 @@ m4_if([$1], [CXX], [ 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_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'