diff --git a/2020/kurdyukov2/Makefile b/2020/kurdyukov2/Makefile index 6d58bb7d7..3d4d97d52 100644 --- a/2020/kurdyukov2/Makefile +++ b/2020/kurdyukov2/Makefile @@ -61,7 +61,7 @@ CDEFINE= # Include files that are needed to compile # -CINCLUDE= -I ${HOMEBREW_PREFIX}/include -I /usr/local/include +CINCLUDE= -I ${HOMEBREW_PREFIX}/include -I /usr/local/include -I /opt/local/include # Optimization # @@ -73,7 +73,7 @@ CFLAGS= ${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT} # Libraries needed to build # -LIBS= -L ${HOMEBREW_PREFIX}/lib -L /usr/local/lib +LIBS= -L ${HOMEBREW_PREFIX}/lib -L /usr/local/lib -L /opt/local/lib LIBJPEG= -ljpeg LIBPNG= -lpng diff --git a/2020/kurdyukov2/README.md b/2020/kurdyukov2/README.md index d4cafd4ce..1fe32fdfe 100644 --- a/2020/kurdyukov2/README.md +++ b/2020/kurdyukov2/README.md @@ -76,7 +76,7 @@ make prog_ppm ### Building on macOS with MacPorts: -- Thanks to Cody Boone Ferguson for this information! +- Thanks to [Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) for this information! First, make sure you have the compiler tools installed e.g. by: diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index ce182aab5..96c49003a 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1212,3 +1212,10 @@ not sure why as it worked fine before on the same systems tested but `-O0` appears to fix the problem in both macOS and linux. Perhaps this is the problem that the author reported where it sometimes segfaults but Cody did not try debugging it yet. + +## [2020/kurdyukov2](2020/kurdyukov2/prog.c) ([README.md](2020/kurdyukov2/README.md)) + +Cody added `-L`/`-I` paths to the Makefile to let this compile more easily if +the user has installed the appropriate library with +[MacPorts](https://www.macports.org) (with the default MacPorts prefix +`/opt/local`).