git: 48f2a1c5a879 - main - lang/gnat12: fix build on systems without 32-bit libraries

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 19 May 2024 10:14:47 UTC
The branch main has been updated by thierry:

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

commit 48f2a1c5a879f3ceff83a3e7564df12f8a2c6039
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-05-19 10:07:16 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-05-19 10:14:44 +0000

    lang/gnat12: fix build on systems without 32-bit libraries
    
    Disable MULTILIB in this case.
    
    PR:             279143
    Reported by:    olce@
---
 lang/gnat12/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lang/gnat12/Makefile b/lang/gnat12/Makefile
index efdba686a96b..ffe05d7a40d8 100644
--- a/lang/gnat12/Makefile
+++ b/lang/gnat12/Makefile
@@ -87,6 +87,8 @@ GCC6AUX_BUILD_DEPENDS=		gcc6-aux>0:lang/gcc6-aux
 GCC6AUX_VARS=			_GCC6AUX_PATH=${LOCALBASE}/gcc6-aux/bin
 .if exists(/usr/lib32/libc.so)
 MULTILIB_CONFIGURE_ENABLE=	multilib
+.else
+CONFIGURE_ARGS+=		--disable-multilib
 .endif
 NLS_CONFIGURE_ON=		--enable-nls
 NLS_CONFIGURE_OFF=		--disable-nls