The attached diff failed for some reason....
Here it is inline
--- pascal/makefile.osx.orig 2019-12-17 10:26:28.000000000 +1300
+++ pascal/makefile.osx 2019-12-17 11:04:51.000000000 +1300
@@ -31,10 +31,10 @@ ifeq ($(USE_XF86DGA_DRIVER),y)
ADDON_LIBS += -lXxf86dga -lXext #NOT included in grx.pas
endif
-LIBS= $(GRXLIBPATH) $(ADDON_LIBS)
+LIBS= $(GRXLIBPATH) $(ADDON_LIBS) -L/usr/X11/lib
# Compiler and options on your system
-COMPILER = $(PC) --automake
+COMPILER = $(PC) --automake '-Wl,-macosx_version_min,10.5'
PROGS= \
--- pascal/bgi/makefile.osx.orig 2019-12-17 10:26:28.000000000 +1300
+++ pascal/bgi/makefile.osx 2019-12-17 11:17:35.000000000 +1300
@@ -25,7 +25,7 @@ else
EXECBITS = 0755
endif
-ADDON_LIBS=
+ADDON_LIBS= -L/usr/X11/lib
ifeq ($(USE_XF86DGA_DRIVER),y)
ADDON_LIBS += -lXxf86dga -lXext #NOT included in graph.pas
@@ -34,7 +34,7 @@ endif
LIBS= $(GRXLIBPATH) $(ADDON_LIBS)
# Compiler and options on your system
-COMPILER = $(PC) --automake
+COMPILER = $(PC) --automake '-Wl,-macosx_version_min,10.5'
PROGS= \
xallmodes \