--- config.sh 2024-11-10 17:12:46.000000000 +0800 +++ config.sh 2024-11-19 00:40:35.000000000 +0800 @@ -106,7 +106,7 @@ run_configure() { mkdir -p $outdir - for flag in -g -std=c11 -D_XOPEN_SOURCE=700 -D_DARWIN_C_SOURCE -Wall -Wextra -pedantic + for flag in -g -std=c11 -D_XOPEN_SOURCE=700 -D_DARWIN_C_SOURCE -I@PREFIX@/include/LegacySupport -Wall -Wextra -pedantic do printf "Checking for %s... " "$flag" if test_cflags "$flag" @@ -118,7 +118,7 @@ done # XXX: Asked the maintainer to provide a .pc file - LIBS="$LIBS -lbearssl" + LIBS="$LIBS -lbearssl -lMacportsLegacySupport" printf "Checking for scdoc... " if scdoc -v >/dev/null 2>&1