graphicsdriver/opengl/gl: Use pkg-config instead of LDFLAGS

Updates #1012
This commit is contained in:
Hajime Hoshi 2019-12-11 03:00:20 +09:00
parent 00fb4cd2f9
commit a3343afc36
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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)