From 939cf6655a6c04ceaf2902c863de9242ac9aece8 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Wed, 18 May 2022 05:53:08 -0500 Subject: [PATCH 1/1] src/tclx/tkucbsrc/makefile: Micropolis build fixes for recent macOS Fix: ../../tk/tkconfig.h:55:10: fatal error: 'X11/Xlib.h' file not found ^~~~~~~~~~~~ --- src/tclx/config.mk | 1 + src/tclx/config/linux | 1 + src/tclx/tkucbsrc/makefile | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tclx/config.mk b/src/tclx/config.mk index 69ca791..6108fbe 100644 --- a/src/tclx/config.mk +++ b/src/tclx/config.mk @@ -54,6 +54,7 @@ TCL_TK_SHELL=wish TCL_TK_DIR=../tk TK_LIBRARY=/usr/local/lib/tk XPM_LIBS=-L/usr/X11R6/lib -lXpm +XINCLUDE=/usr/X11R6/include #------------------------------------------------------------------------------ # Compiler debug/optimization/profiling flag to use. Not that if debugging or diff --git a/src/tclx/config/linux b/src/tclx/config/linux index 12a800d..e83296f 100644 --- a/src/tclx/config/linux +++ b/src/tclx/config/linux @@ -9,5 +9,6 @@ LIBS=-lm RANLIB_CMD=ranlib MCS_CMD=true TCL_TK_LIBS= -L/usr/X11/lib -lX11 -lm -lXpm +XINCLUDE=/usr/include/X11 TCL_MAN_SEPARATOR= diff --git a/src/tclx/tkucbsrc/makefile b/src/tclx/tkucbsrc/makefile index 47f45f9..757ba45 100644 --- a/src/tclx/tkucbsrc/makefile +++ b/src/tclx/tkucbsrc/makefile @@ -24,7 +24,7 @@ SHELL=/bin/sh #------------------------------------------------------------------------------ CFLAGS= $(OPTIMIZE_FLAG) $(XCFLAGS) -I../src -I../$(TCL_TK_DIR) \ - -I../$(TCL_UCB_DIR) -I$(XHOME)/include \ + -I../$(TCL_UCB_DIR) -I$(XINCLUDE) \ $(MEM_DEBUG_FLAGS) $(SYS_DEP_FLAGS) \ -DTK_VERSION=\"2.2/\" -- 2.39.5