From 0324db5657e133f85d967ab7b7eab98600935288 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 21 Jul 2023 01:08:14 +0900 Subject: [PATCH] internal/glfw/glfw: remove -l options DLLs for OpenGL are loaded automatically and doesn't have to link them when compiling. DLLs for Vulkan are not used. --- internal/glfw/glfw/build.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/glfw/glfw/build.go b/internal/glfw/glfw/build.go index 99aa65934..94df6a9f8 100644 --- a/internal/glfw/glfw/build.go +++ b/internal/glfw/glfw/build.go @@ -15,9 +15,6 @@ package glfw // Linker Options: #cgo darwin LDFLAGS: -framework Cocoa -framework IOKit -framework CoreVideo -#cgo !gles2,darwin LDFLAGS: -framework OpenGL -#cgo gles2,darwin LDFLAGS: -lGLESv2 - // Linux Build Tags // ---------------- // GLFW Options: @@ -25,11 +22,6 @@ package glfw #cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND // Linker Options: -#cgo linux,!gles1,!gles2,!gles3,!vulkan LDFLAGS: -lGL -#cgo linux,gles1 LDFLAGS: -lGLESv1 -#cgo linux,gles2 LDFLAGS: -lGLESv2 -#cgo linux,gles3 LDFLAGS: -lGLESv3 -#cgo linux,vulkan LDFLAGS: -lvulkan #cgo linux,!wayland LDFLAGS: -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lm -lXinerama -ldl -lrt #cgo linux,wayland LDFLAGS: -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon -lm -ldl -lrt