--- ./libraries/liblmdb/Makefile_orig	2026-05-16 04:47:32.901001209 -0400
+++ ./libraries/liblmdb/Makefile	2026-05-16 04:50:43.082652908 -0400
@@ -18,8 +18,8 @@
 # There may be other macros in mdb.c of interest. You should
 # read mdb.c before changing any of them.
 #
-CC	= gcc
-AR	= ar
+CC	= gcc -maix64
+AR	= ar -X64
 W	= -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized
 THREADS = -pthread
 OPT = -O2 -g
@@ -27,7 +27,7 @@
 LDLIBS	=
 SOLIBS	=
 SOEXT	= .so
-prefix	= /usr/local
+prefix	= /opt/freeware
 exec_prefix = $(prefix)
 bindir = $(exec_prefix)/bin
 libdir = $(exec_prefix)/lib
