From e24c83f7e35c70f251836a75deada59886fe1310 Mon Sep 17 00:00:00 2001 From: Zoe Knox Date: Thu, 9 May 2024 06:33:59 +0000 Subject: [PATCH] Use OBJTOP cmake for Onyx2D build --- Frameworks/Onyx2D/freetype/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Frameworks/Onyx2D/freetype/Makefile b/Frameworks/Onyx2D/freetype/Makefile index 960283e6e077..c63c121f055d 100644 --- a/Frameworks/Onyx2D/freetype/Makefile +++ b/Frameworks/Onyx2D/freetype/Makefile @@ -2,14 +2,15 @@ MK_WERROR=no WARNS=1 -CFLAGS+= -I${OBJTOP}/tmp/usr/include +CFLAGS+= --sysroot=${OBJTOP}/tmp -B{$OBJTOP}/tmp/usr/bin +CMAKE?= ${OBJTOP}/tmp/usr/bin/cmake .include all: build build: - cmake -S ${.CURDIR} -B ${MAKEOBJDIR} \ + ${CMAKE} -S ${.CURDIR} -B ${MAKEOBJDIR} \ -DCMAKE_C_FLAGS="${CFLAGS}" \ -DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \ -DCMAKE_BUILD_TYPE=Release \