Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding FreeBSD support #215

Merged
merged 2 commits into from
Nov 11, 2022
Merged

Adding FreeBSD support #215

merged 2 commits into from
Nov 11, 2022

Conversation

JupiterRider
Copy link
Contributor

Basically I just copied the cgo_linux.go to cgo_freebsd.go and added two new flags -I/usr/local/include and -L/usr/local/lib and had to remove -Wno-stringop-overflow (clang doesn't know this parameter).

FreeBSD stores header files and libraries in /usr/local/*.

Also had to change linux_joystick.c to null_joystick.c. GLFW currently doesn't support gamepads: glfw/glfw#1892

With that, I got it to run with clang (which is the default cgo compiler on FreeBSD) and gcc as well.

@gen2brain gen2brain merged commit 461d2f4 into gen2brain:master Nov 11, 2022
@gen2brain
Copy link
Owner

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants