git: bb15918c982b - main - lang/sbcl: Fix build on i386

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Sun, 05 Nov 2023 16:40:43 UTC
The branch main has been updated by jrm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bb15918c982bed6ad0d4245067edc0de54b4e916

commit bb15918c982bed6ad0d4245067edc0de54b4e916
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2023-11-03 02:10:24 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2023-11-05 16:39:22 +0000

    lang/sbcl: Fix build on i386
    
    SBCL's internal build configuration for FreeBSD amd64 uses
    -isystem/usr/local/include and -L/usr/local/lib.  For some reason, the
    same configure for FreeBSD i386 did not include these.  Fix the build on
    i386 by adding them.
    
    Reported by:    krion (maintainer)
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D42450
---
 lang/sbcl/files/patch-src_runtime_Config.x86-freebsd | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/lang/sbcl/files/patch-src_runtime_Config.x86-freebsd b/lang/sbcl/files/patch-src_runtime_Config.x86-freebsd
new file mode 100644
index 000000000000..7d53f10d0594
--- /dev/null
+++ b/lang/sbcl/files/patch-src_runtime_Config.x86-freebsd
@@ -0,0 +1,12 @@
+--- src/runtime/Config.x86-freebsd.orig	2023-11-03 01:58:54 UTC
++++ src/runtime/Config.x86-freebsd
+@@ -17,7 +17,8 @@ LINKFLAGS += -dynamic -Wl,--export-dynamic -m32
+ # runtime.
+ LINKFLAGS += -dynamic -Wl,--export-dynamic -m32
+ 
+-OS_LIBS += -lutil
++OS_LIBS += -lutil -L/usr/local/lib
++CPPFLAGS += -isystem/usr/local/include
+ 
+ # use libthr (1:1 threading).  libpthread (m:n threading) does not work.
+ ifdef LISP_FEATURE_SB_THREAD