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-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.
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