Improve 2020/kurdyukov2 for MacPorts build

The -I/-L options to the compiler/linker have been updated for those who
use MacPorts with the default MacPorts prefix.
This commit is contained in:
Cody Boone Ferguson committed 2023-07-05 05:12:34 -07:00
1 parent ad31c75a7c
commit 30f7d86316
3 files changed
+10 -3

No files matched your search

+2 -2
View File
@@ -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
+1 -1
View File
@@ -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:
+7
View File
@@ -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`).