This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch,build] Build libgfortran and libgomp as DLL on win32


The attached patch allows libgfortran and libgomp to be built as
shared libraries (DLL) on i386-pc-mingw32. It simply adds
-no-undefined to the linker flags, and checks for support in the
configure.ac: LT_INIT([shared static win32-dll dlopen]).

This was bootstrapped and manually tested on i386-pc-mingw32.
(Building libgomp requires using pthreads-win32 and explicitly
configuring with --enable-libgomp.) I think I need the approval of
build maintainers for this patch, but other opinions are welcome
(especially the windows maintainers).

FX


PS: I intend to do the same for libobjc and libstdc++-v3, but I can't
make it work for libobjc (I'm investigating) and libstdc++-v3 is
currently broken on mingw32. For libssp, I think I'd need some advice:
who maintains it? (there's no listed maintainer AFAICT)

Attachment: win32-dll.ChangeLog
Description: Binary data

Attachment: win32-dll.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]