From 80a9d08505a8940c15b7b601e552043ccba9f376 Mon Sep 17 00:00:00 2001 From: Bakul Shah Date: Sat, 26 Dec 2020 00:08:16 -0800 Subject: [PATCH] sokol: fix for freebsd (#7466) --- vlib/sokol/c/declaration.c.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/sokol/c/declaration.c.v b/vlib/sokol/c/declaration.c.v index f2242be477..856fcf4466 100644 --- a/vlib/sokol/c/declaration.c.v +++ b/vlib/sokol/c/declaration.c.v @@ -6,9 +6,11 @@ pub const ( #flag -I @VROOT/thirdparty/sokol #flag -I @VROOT/thirdparty/sokol/util +#flag freebsd -I /usr/local/include #flag darwin -fobjc-arc #flag linux -lX11 -lGL -lXcursor -lXi +#flag freebsd -L/usr/local/lib -lX11 -lGL -lXcursor -lXi #flag windows -lgdi32 @@ -18,6 +20,7 @@ pub const ( // OPENGL #flag linux -DSOKOL_GLCORE33 +#flag freebsd -DSOKOL_GLCORE33 //#flag darwin -framework OpenGL -framework Cocoa -framework QuartzCore // D3D