summaryrefslogtreecommitdiff
path: root/devel/libtool
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libtool')
-rw-r--r--devel/libtool/Makefile8
-rw-r--r--devel/libtool/files/stagepatch-m4_libtool.m413
2 files changed, 20 insertions, 1 deletions
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*)