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