Do not link GL when ANGLE is used

This commit is contained in:
Milan Nikolic 2023-06-21 11:19:43 +02:00
parent 048c1b598c
commit a6644da243
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
5 changed files with 18 additions and 8 deletions

View file

@ -36,8 +36,10 @@ package rl
#cgo freebsd CFLAGS: -I. -I/usr/local/include -Iexternal/glfw/include -DPLATFORM_DESKTOP
#cgo freebsd LDFLAGS: -L/usr/local/lib
#cgo freebsd,!wayland LDFLAGS: -lGL -lm -pthread -ldl -lrt -lX11
#cgo freebsd,wayland LDFLAGS: -lGL -lm -pthread -ldl -lrt -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
#cgo freebsd,!wayland LDFLAGS: -lm -pthread -ldl -lrt -lX11
#cgo freebsd,wayland LDFLAGS: -lm -pthread -ldl -lrt -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
#cgo freebsd,!angle LDFLAGS: -lGL
#cgo freebsd,!wayland CFLAGS: -D_GLFW_X11
#cgo freebsd,wayland CFLAGS: -D_GLFW_WAYLAND