mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
app: Enable building on OpenBSD
Currently the golang.org/x/sys package is missing the Pipe2 call for OpenBSD. The call exists on OpenBSD, it just isn't exposed. This diff was tested buy adding the Pipe2 call and setting: go mod edit -replace=golang.org/x/sys=/pat/to/modified/sys Signed-off-by: Aaron Bieber <aaron@bolddaemon.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: Unlicense OR MIT
|
||||
|
||||
// +build darwin linux freebsd
|
||||
// +build darwin linux freebsd openbsd
|
||||
|
||||
package gl
|
||||
|
||||
@@ -12,9 +12,12 @@ import (
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -Werror
|
||||
#cgo linux freebsd LDFLAGS: -lGLESv2 -ldl
|
||||
#cgo linux freebsd openbsd LDFLAGS: -lGLESv2
|
||||
#cgo linux freebsd LDFLAGS: -ldl
|
||||
#cgo freebsd CFLAGS: -I/usr/local/include
|
||||
#cgo freebsd LDFLAGS: -L/usr/local/lib
|
||||
#cgo openbsd CFLAGS: -I/usr/X11R6/include
|
||||
#cgo openbsd LDFLAGS: -L/usr/X11R6/lib
|
||||
#cgo darwin,!ios CFLAGS: -DGL_SILENCE_DEPRECATION
|
||||
#cgo darwin,!ios LDFLAGS: -framework OpenGL
|
||||
#cgo darwin,ios CFLAGS: -DGLES_SILENCE_DEPRECATION
|
||||
|
||||
Reference in New Issue
Block a user