Support DragonFly BSD - #81
Conversation
| ifeq ($(RAYLIB_BUILD_MODE),RELEASE) | ||
| ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_GLFW) | ||
| CFLAGS += -O1 | ||
| + CFLAGS += -fPIC |
There was a problem hiding this comment.
Is this needed specifically for dragonfly? I don't know too much about it
There was a problem hiding this comment.
No, this is only needed so that the patch applies cleanly. Maybe I have the wrong vendored raylib, but on my system the freebsd.patch fails to apply cleanly.
What is needed on DragonFly is to use "gcc" instead of "clang".
|
Thanks for raising this PR. We used to get a FreeBSD build on opamci but this no longer works becaus the gl-depext is broken. I might need to install at least FreeBSD to test |
|
@tjammer we could set up CI for FreeBSD, OpenBSD, DragonFly etc. Other projects, e.g. solo5 do that as you can see here. https://github.com/Solo5/solo5/tree/main/.github/workflows Maybe it makes sense to add CI before merging this PR! |
The
freebsd.patchdid not apply cleanly as there is no longer aifeq ($(PLATFORM),PLATFORM_DESKTOP)in raylib, at least in the current version I tried (vendor/raylib). Also, DragonFly still uses gcc and not clang.