Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Backport (upstream build fix)[go-gl/glfw#399]
  • Loading branch information
PunkPangolin committed Jan 11, 2025
1 parent 7b8d3c7 commit 92dd6d9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions fix-build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/vendor/github.com/go-gl/glfw/v3.3/glfw/build.go b/vendor/github.com/go-gl/glfw/v3.3/glfw/build.go
index 14a7ef3..4a00f2e 100644
--- a/vendor/github.com/go-gl/glfw/v3.3/glfw/build.go
+++ b/vendor/github.com/go-gl/glfw/v3.3/glfw/build.go
@@ -27,7 +27,7 @@ package glfw
// ----------------
// GLFW Options:
#cgo linux,!wayland CFLAGS: -D_GLFW_X11
-#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND
+#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND -D_GNU_SOURCE

// Linker Options:
#cgo linux,!gles1,!gles2,!gles3,!vulkan LDFLAGS: -lGL
5 changes: 4 additions & 1 deletion xyz.rescribe.rescribe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ app-id: xyz.rescribe.rescribe
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
sdk-extensions: org.freedesktop.Sdk.Extension.golang
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang
build-options:
append-path: /usr/lib/sdk/golang/bin
finish-args:
Expand Down Expand Up @@ -40,6 +41,8 @@ modules:
url: https://rescribe.xyz/rescribe/embeds/tessdata.20220322.zip
sha256: 725fd570a3c3dc0eba9463248ce47a8646db8bafb198d428d6bb8f0be18540ee
dest: cmd/rescribe
- type: patch
path: fix-build.patch
- name: leptonica
sources:
- type: git
Expand Down

0 comments on commit 92dd6d9

Please sign in to comment.