git: 6f3c28c414f3 - main - devel/libtool: Add patch to fix flang detection
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Aug 2025 06:51:17 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6f3c28c414f3c2270540af7df4168dc08611dd22
commit 6f3c28c414f3c2270540af7df4168dc08611dd22
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-07-01 16:28:58 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-08-01 06:51:11 +0000
devel/libtool: Add patch to fix flang detection
---
devel/libtool/Makefile | 8 +++++++-
devel/libtool/files/stagepatch-m4_libtool.m4 | 13 +++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/devel/libtool/Makefile b/devel/libtool/Makefile
index f0d65e761860..52d018b4a5f1 100644
--- a/devel/libtool/Makefile
+++ b/devel/libtool/Makefile
@@ -1,5 +1,5 @@
PORTNAME= libtool
-PORTREVISION= 0
+PORTREVISION= 1
COMMENT= Generic shared library support script
WWW= https://www.gnu.org/software/libtool/
@@ -27,4 +27,10 @@ CXX= c++
LD= ld
.endif
+# Perform the patching after the build, because touching m4 files before the
+# configuration step causes autoreconf to be invoked
+post-stage:
+ cd ${STAGEDIR}${PREFIX}/share/aclocal && \
+ ${PATCH} --posix -p1 < ${PATCHDIR}/stagepatch-m4_libtool.m4
+
.include <bsd.port.mk>
diff --git a/devel/libtool/files/stagepatch-m4_libtool.m4 b/devel/libtool/files/stagepatch-m4_libtool.m4
new file mode 100644
index 000000000000..63415144279d
--- /dev/null
+++ b/devel/libtool/files/stagepatch-m4_libtool.m4
@@ -0,0 +1,13 @@
+https://lists.gnu.org/archive/html/libtool-patches/2025-07/msg00000.html
+
+--- m4/libtool.m4.orig 2024-11-20 19:01:08 UTC
++++ m4/libtool.m4
+@@ -4825,7 +4825,7 @@ m4_if([$1], [CXX], [
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+- linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
++ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | *freebsd*)
+ case $cc_basename in
+ # old Intel for x86_64, which still supported -KPIC.
+ ecc*)