--- conf/Unix.mk	2018-08-15 04:41:54.000000000 +0800
+++ conf/Unix.mk	2023-08-01 23:07:40.000000000 +0800
@@ -19,7 +19,7 @@
 DP = lib
 
 # Extension for DLL file name.
-D = .so
+D = .dylib
 
 # Output file names can be overridden directly. By default, they are
 # assembled using the prefix/extension macros defined above.
@@ -37,8 +37,8 @@
 MKDIR = mkdir -p
 
 # C compiler and flags.
-CC = cc
-CFLAGS = -W -Wall -Os -fPIC
+CC = @CC@
+CFLAGS = @ARCHFLAGS@ -W -Wall -Os -fPIC @DEFS@
 CCOUT = -c -o 
 
 # Static library building tool.
@@ -47,18 +47,18 @@
 AROUT =
 
 # DLL building tool.
-LDDLL = cc
-LDDLLFLAGS = -shared
+LDDLL = @CC@
+LDDLLFLAGS = -shared @ARCHFLAGS@
 LDDLLOUT = -o 
 
 # Static linker.
-LD = cc
-LDFLAGS = 
+LD = @CC@
+LDFLAGS = @ARCHFLAGS@
 LDOUT = -o 
 
 # C# compiler; we assume usage of Mono.
-MKT0COMP = mk$PmkT0.sh
-RUNT0COMP = mono T0Comp.exe
+# MKT0COMP = mk$PmkT0.sh
+# RUNT0COMP = mono T0Comp.exe
 
 # Set the values to 'no' to disable building of the corresponding element
 # by default. Building can still be invoked with an explicit target call
