fix: define OF_VERSION_MAJOR/MINOR so Vec3/Vec2 compile the glm branch

This commit is contained in:
Timothy Hofland
2026-03-15 22:29:33 +01:00
parent 564ede7bd9
commit 0baf1715ed

View File

@ -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.