Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Dec 2022 22:15:05 GMT
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5325ea5ae199 - main - devel/libtool: Fix cross compiled packages
Message-ID:  <202212252215.2BPMF5ec014870@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tijl:

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

commit 5325ea5ae199c461c0dce63075d2d90c095b80fd
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2022-04-08 14:31:53 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2022-12-25 22:12:15 +0000

    devel/libtool: Fix cross compiled packages
    
    The libtool script is generated for a given compiler so Poudriere cannot
    use a cross compiler.
    
    lang/python* ports have a similar problem.
    
    PR:             230018
---
 devel/libtool/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/devel/libtool/Makefile b/devel/libtool/Makefile
index 5121661dc23c..338a975d2990 100644
--- a/devel/libtool/Makefile
+++ b/devel/libtool/Makefile
@@ -19,4 +19,11 @@ TEST_TARGET=	check
 NO_ARCH=	yes
 INFO=		libtool
 
+.if "${CC}" == "/nxb-bin/usr/bin/cc"
+# Generate libtool script for the native compiler, not the cross compiler.
+CC=		cc
+CXX=		c++
+LD=		ld
+.endif
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212252215.2BPMF5ec014870>