This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch] Allow building libgfortran as a DLL
FX wrote:
>> If you wanted to do something about that, recent versions of ld(**) will
>> accept an ELF version script on PE platforms. No actual symbol
>> versioning
>> happens (yet?), but it acts as a filter on the auto-export feature so
>> that only
>> the symbols that are supposed to be visible get exported. (I intend
>> to do this
>> for libstdc++ as a follow-on patch once I've got the initial DLL
>> support committed.)
>
> It turns out it's what happened for my tests with the cross-compiler (as
> I stated in http://gcc.gnu.org/ml/fortran/2009-07/msg00254.html, though
> I did not analyse it further). This is good to know.
Ah, I missed that.
For users with older versions of LD, it will silently ignore the version
script. Not sure if you want to worry about that or not.
cheers,
DaveK