]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [ cygwin ]:
authorCharles Wilson <libtool@cwilson.fastmail.fm>
Thu, 1 Jun 2006 18:39:24 +0000 (18:39 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 1 Jun 2006 18:39:24 +0000 (18:39 +0000)
define DLL_EXPORT for PIC objects on cygwin.

ChangeLog
libltdl/m4/libtool.m4

index b2675ea61d1035068b177002abfbbf9fa523765b..15cf0286556fadc8f6165ab29e32f5fdb8e2b020 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-01  Charles Wilson  <libtool@cwilson.fastmail.fm>
+
+       * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [ cygwin ]:
+       define DLL_EXPORT for PIC objects on cygwin.
+
 2006-05-24  Albert Chin  <china@thewrittenword.com>
 
        * libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG)
index 31400e81c6c412c65314b154aa10e2107898d545..4ef23e38e5b9d4a2e6579bbb3120976cad763574 100644 (file)
@@ -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'