From 58112c5fc4f18b0b56e21da674187a6fc3831a5c Mon Sep 17 00:00:00 2001
From: Fred Gilham <fred@sunbot.homedns.org>
Date: Wed, 22 Mar 2017 15:30:55 -0700
Subject: [PATCH] Final cleaned-up changes for FreeBSD 10.

---
 src/lisp/Config.x86_freebsd     | 6 +++---
 src/motif/server/Config.FreeBSD | 3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/lisp/Config.x86_freebsd b/src/lisp/Config.x86_freebsd
index 5b1760fe1..2012640c6 100644
--- a/src/lisp/Config.x86_freebsd
+++ b/src/lisp/Config.x86_freebsd
@@ -1,13 +1,13 @@
 # -*- Mode: makefile -*-
 include Config.x86_common
-# Set the path to your 32-bit verison of GCC here.
-CC=gcc
+# Set the path to your verison of GCC here.
+CC = gcc -m32
 
 CPPFLAGS += -march=pentium4 -mfpmath=sse
 
 UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
 OS_SRC += FreeBSD-os.c elf.c
 OS_LINK_FLAGS = -dynamic -export-dynamic
-OS_LIBS = -lutil -lmd
+OS_LIBS = -B/usr/lib32 -lutil -lmd
 
 EXEC_FINAL_OBJ = exec-final.o
diff --git a/src/motif/server/Config.FreeBSD b/src/motif/server/Config.FreeBSD
index 02de22a95..dc3473f77 100644
--- a/src/motif/server/Config.FreeBSD
+++ b/src/motif/server/Config.FreeBSD
@@ -1,5 +1,4 @@
-## Path to 32-bit GCC compiler.
-CC=gcc
+CC=gcc 
 CFLAGS = -pthread -O2 -I/usr/local/include -I. -I$(VPATH)
 LDFLAGS = -L/usr/local/lib
 LIBS = -lXm -lXt -lX11
-- 
GitLab