oridb / mc

Myrddin Compiler
MIT License
387 stars 34 forks source link

Let mbld link C on OpenBSD #167

Closed cbvi closed 6 years ago

cbvi commented 6 years ago

This lets mbld work for projects that bind C on OpenBSD.

Now that there's more than one OS that can do this, I thought it made sense to declare the dynamic linker flags in a config variable, while leaving it empty on platforms that haven't had support added (yet).

Also defines the __guard_local stack protector variable as OpenBSD's libc expects it.

oridb commented 6 years ago

Will test out on other systems later today, should be similarly easy to add FreeBSD/NetBSD, and I think OSX is already working.