--- Makefile.orig	2022-11-08 05:11:27 +0000
+++ Makefile	2022-11-08 05:18:29 +0000
@@ -1280,8 +1280,8 @@
 # tweaked by config.* below as well as the command-line, both of
 # which'll override these defaults.
 # Older versions of GCC may require adding "-std=gnu99" at the end.
-CFLAGS = -g -O2 -Wall
-LDFLAGS =
+CFLAGS = -std=gnu99 -O2 -D_LARGE_FILES
+LDFLAGS = -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 
 CC_LD_DYNPATH = -Wl,-rpath,
 BASIC_CFLAGS = -I.
 BASIC_LDFLAGS =
