git: 5325ea5ae199 - main - devel/libtool: Fix cross compiled packages
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 Dec 2022 22:15:05 UTC
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>