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.