mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
graphicsdriver/opengl/gl: Use pkg-config instead of LDFLAGS
Updates #1012
This commit is contained in:
parent
00fb4cd2f9
commit
a3343afc36
@ -5,8 +5,8 @@
|
||||
|
||||
package gl
|
||||
|
||||
// #cgo darwin LDFLAGS: -framework OpenGL
|
||||
// #cgo linux freebsd LDFLAGS: -lGL
|
||||
// #cgo darwin LDFLAGS: -framework OpenGL
|
||||
// #cgo linux freebsd pkg-config: gl
|
||||
//
|
||||
// #ifndef APIENTRY
|
||||
// #define APIENTRY
|
||||
|
@ -21,9 +21,9 @@ package gl
|
||||
#cgo darwin CFLAGS: -DTAG_DARWIN
|
||||
#cgo darwin LDFLAGS: -framework OpenGL
|
||||
#cgo linux freebsd CFLAGS: -DTAG_POSIX
|
||||
#cgo linux freebsd LDFLAGS: -lGL
|
||||
#cgo linux freebsd pkg-config: gl
|
||||
#cgo egl CFLAGS: -DTAG_EGL
|
||||
#cgo egl LDFLAGS: -lEGL
|
||||
#cgo egl pkg-config: egl
|
||||
// Check the EGL tag first as it takes priority over the platform's default
|
||||
// configuration of WGL/GLX/CGL.
|
||||
#if defined(TAG_EGL)
|
||||
|
Loading…
Reference in New Issue
Block a user