From 0baf1715ed81429a00a8e10a823f52769de5d149 Mon Sep 17 00:00:00 2001 From: Timothy Hofland Date: Sun, 15 Mar 2026 22:29:33 +0100 Subject: [PATCH] fix: define OF_VERSION_MAJOR/MINOR so Vec3/Vec2 compile the glm branch --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index cc54f42..de29a14 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -182,7 +182,7 @@ if ! command -v aarch64-linux-gnu-g++ > /dev/null 2>&1; then fi cd "$ADDON_DIR/example_basic" -GLOBAL_FLAGS="-Wno-error -Wno-reorder -Wno-sign-compare -Wno-delete-non-virtual-dtor -std=c++11 -O0 -fno-tree-vrp" +GLOBAL_FLAGS="-Wno-error -Wno-reorder -Wno-sign-compare -Wno-delete-non-virtual-dtor -std=c++11 -O0 -fno-tree-vrp -DOF_VERSION_MAJOR=0 -DOF_VERSION_MINOR=12" # The OF Makefile has a bug: it calls `export $(PKG_CONFIG_PATH)` which passes the # VALUE as a variable name under /bin/sh, causing "bad variable name" errors.