--- src/Makevars 2024-03-05 06:33:34.000000000 +0800 +++ src/Makevars 2024-06-19 04:33:11.000000000 +0800 @@ -5,7 +5,9 @@ PKG_CPPFLAGS += -DBOOST_DISABLE_ASSERTS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -DBOOST_NO_AUTO_PTR -D_REENTRANT -DSTAN_THREADS -DSTRICT_R_HEADERS PKG_CXXFLAGS += -DSTRICT_R_HEADERS PKG_CPPFLAGS += -DUSE_PTHREAD +PKG_CPPFLAGS += -I@PREFIX@/include/LegacySupport SHLIB_LDFLAGS = $(SHLIB_CXXLDFLAGS) +SHLIB_LDFLAGS += -L@PREFIX@/lib -lMacportsLegacySupport SHLIB_LD = $(SHLIB_CXXLD) SUNDIALS_CVODES := \