From: Gary V. Vaughan Date: Tue, 8 Jun 1999 10:03:41 +0000 (+0000) Subject: * ltconfig.in (cygwin, pic_flag): Force separate compilation of X-Git-Tag: release-1-3b~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30d470e162e2705c856081d672d8a414f02a985b;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 9a867acc3..226fef19b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-06-08 Gary V. Vaughan + + * 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 * ltconfig.in: Support new GNU ld --help output format. diff --git a/ltconfig.in b/ltconfig.in index d07760cc2..e3c6daa6f 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -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