]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (cygwin, pic_flag): Force separate compilation of
authorGary V. Vaughan <gary@gnu.org>
Tue, 8 Jun 1999 10:03:41 +0000 (10:03 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 8 Jun 1999 10:03:41 +0000 (10:03 +0000)
objects for dlls vs. objects for static archives.  Using a cpp
macro also allows us to decide whether or not we need to use
dllexport/import declarations.

ChangeLog
ltconfig.in

index 9a867acc36323210734f6905b8b890b83989231b..226fef19b3ad1147afbf20e503583dc29fd52d3c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+1999-06-08  Gary V. Vaughan  <gary@oranda.demon.co.uk>
+
+       * ltconfig.in (cygwin, pic_flag):  Force separate compilation of
+       objects for dlls vs. objects for static archives.  Using a cpp
+       macro also allows us to decide whether or not we need to use
+       dllexport/import declarations.
+
 1999-06-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * ltconfig.in: Support new GNU ld --help output format.
index d07760cc29933a9432d21cd1205fc65735cbda6a..e3c6daa6fbc113ed90db153ad6d1e24cb054a16e 100755 (executable)
@@ -642,7 +642,9 @@ if test "$with_gcc" = yes; then
     link_static_flag="$link_static_flag ${wl}-lC"
     ;;
   cygwin* | mingw* | os2*)
-    # We can build DLLs from non-PIC.
+    # 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).
+    pic_flag='-DDLL_EXPORT'
     ;;
   amigaos*)
     # FIXME: we need at least 68020 code to build shared libraries, but