New comment by natrys on void-packages repository https://github.com/void-linux/void-packages/pull/25035#issuecomment-828533311 Comment: hi @biopsin do you mean: ``` make_build_args="LOCALINC=${XBPS_CROSS_BASE}/usr/include LOCALLIB=${XBPS_CROSS_BASE}/usr/lib FREETYPEINC=${XBPS_CROSS_BASE}/usr/include/freetype2 X11INC=${XBPS_CROSS_BASE}/usr/include/X11 LDFLAGS+=\$(LIBS) CFLAGS+=\$(INCS)" ``` This works but I feel like this is more indirect and implicit than just setting up CFLAGS/LDFLAGS directly which is the desired effect. ``` CFLAGS="-I${XBPS_CROSS_BASE}/usr/include" CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/X11" CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/freetype2" LDFLAGS="-lfontconfig -lXft -lXinerama -lX11 -lImlib2" ``` Perhaps @ericonr can weigh in.