https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99691
Bug ID: 99691
Summary: OpenBSD support for GDC
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: bcallah at protonmail dot com
Target Milestone: ---
Created attachment 50441
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50441&action=edit
OpenBSD support for GDC
Hello --
Provided here is a patch demonstrating OpenBSD support for GDC.
Some important notes and helps needed:
* Iain, you'll notice that my druntime is different from the DMD druntime diff
you saw on GitHub. I will do my best to sync the two, which will mean replacing
what I've done for DMD with what I've done here for GDC, to make all lives
easier.
* I cannot get a shared libgphobos to work on OpenBSD. I get random crashes
that I have not yet been able to track down. I do not know how to disable
--enable-shared in libphobos's configure.ac without disabling it for all of
gcc, which is not desirable. If that's a patch I have to carry until I can get
a working shared libgphobos, that's fine.
* I suspect libphobos will work on more than just x86_64 and i386 but as I've
only been able to test on x86_64, I kept libphobos to just those 2 archs. I
will submit further diffs for more platforms as I'm able to test.
* The port is otherwise fairly straightforward and I am using this in
production.
Thanks! Happy to work with you to get this in.