From a3343afc364c69881f96a9c17d91e73896f468f4 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 11 Dec 2019 03:00:20 +0900 Subject: [PATCH] graphicsdriver/opengl/gl: Use pkg-config instead of LDFLAGS Updates #1012 --- internal/graphicsdriver/opengl/gl/package_notwindows.go | 4 ++-- internal/graphicsdriver/opengl/gl/procaddr_notwindows.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/graphicsdriver/opengl/gl/package_notwindows.go b/internal/graphicsdriver/opengl/gl/package_notwindows.go index ea756bbb9..5352e2ae7 100644 --- a/internal/graphicsdriver/opengl/gl/package_notwindows.go +++ b/internal/graphicsdriver/opengl/gl/package_notwindows.go @@ -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 diff --git a/internal/graphicsdriver/opengl/gl/procaddr_notwindows.go b/internal/graphicsdriver/opengl/gl/procaddr_notwindows.go index 28b7390b4..73bc612c5 100644 --- a/internal/graphicsdriver/opengl/gl/procaddr_notwindows.go +++ b/internal/graphicsdriver/opengl/gl/procaddr_notwindows.go @@ -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)