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 \