--- src/Makevars 2024-07-07 19:06:21.000000000 +0800 +++ src/Makevars 2024-07-10 16:31:37.000000000 +0800 @@ -1,5 +1,5 @@ -PKG_CPPFLAGS = -I"../inst/include/" -I"../inst/include/quickjs" -D_GNU_SOURCE -PKG_LIBS = ../inst/lib/$(R_ARCH)/libquickjs.a +PKG_CPPFLAGS = -I"../inst/include/" -I"../inst/include/quickjs" -I@PREFIX@/include/LegacySupport -D_GNU_SOURCE +PKG_LIBS = ../inst/lib/$(R_ARCH)/libquickjs.a -L@PREFIX@/lib -lMacportsLegacySupport ifeq ($(OS),Windows_NT) DLL := .dll