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

ChangeLog
libtool.m4

index c648443f68cae963467f01283e4a78dbd430dfc5..738f711aa47cc2a5ed5176f443f0a28c05aabb8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-01  Charles Wilson  <libtool@cwilson.fastmail.fm>
+
+       * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC) [ cygwin ]:
+       define DLL_EXPORT for PIC objects on cygwin.
+
 2006-05-19  Gary V. Vaughan  <gary@gnu.org>
 
        * libtool.m4 (LT_AC_PROG_SED): AC_SUBST([SED]) for
index 779ea8a1e6f0e5c3c56e7abbce92c24368d62469..eed228918a50af909f4a64a3a87ba909f89d6b65 100644 (file)
@@ -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'