git: 5541f7ee8116 - main - devel/libtecla: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Feb 2025 23:28:01 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5541f7ee811692c62b18cbcbce44a52aa4a6f415
commit 5541f7ee811692c62b18cbcbce44a52aa4a6f415
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-02-18 17:21:17 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-02-20 23:27:23 +0000
devel/libtecla: fix build on armv7
Link with CC instead of LD to grab the right support libraries.
This makes sure the symbol __aeabi_idivmod from -lgcc is present.
Approved by: portmgr (build fix blanket)
MFH: 2025Q1
---
devel/libtecla/Makefile | 6 +++---
devel/libtecla/files/patch-configure.in | 13 +++++++++++++
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/devel/libtecla/Makefile b/devel/libtecla/Makefile
index ad9ba1e9b4ef..19c1aa05e892 100644
--- a/devel/libtecla/Makefile
+++ b/devel/libtecla/Makefile
@@ -1,6 +1,6 @@
PORTNAME= libtecla
-PORTVERSION= 1.6.3
-PORTREVISION= 1
+DISTVERSION= 1.6.3
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.astro.caltech.edu/~mcs/tecla/
@@ -10,6 +10,7 @@ WWW= https://www.astro.caltech.edu/~mcs/tecla/
LICENSE= MIT
+USES= autoreconf
USE_LDCONFIG= yes
USE_SUBMAKE= yes
@@ -19,7 +20,6 @@ GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
MAKE_JOBS_UNSAFE= yes
ALL_TARGET= default
-LLD_UNSAFE= yes
SSP_UNSAFE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
diff --git a/devel/libtecla/files/patch-configure.in b/devel/libtecla/files/patch-configure.in
new file mode 100644
index 000000000000..811500433725
--- /dev/null
+++ b/devel/libtecla/files/patch-configure.in
@@ -0,0 +1,13 @@
+--- configure.in.orig 2025-02-18 17:16:32 UTC
++++ configure.in
+@@ -520,8 +520,8 @@ dnl is specified.
+ *freebsd*)
+ SHARED_EXT=".so.${MAJOR_VER}"
+ SHARED_ALT=".so"
+- VERSION_OPT='--version-script=$$(srcdir)/libtecla.map'
+- LINK_SHARED='ld -o $$@ -soname libtecla$$(SUFFIX).so.'${MAJOR_VER}' -shared '$VERSION_OPT' $$(LIB_OBJECTS) $$(LIBS) -lc'
++ VERSION_OPT='-Wl,--version-script=$$(srcdir)/libtecla.map'
++ LINK_SHARED='${CC} -o $$@ -Wl,-soname=libtecla$$(SUFFIX).so.'${MAJOR_VER}' -shared '$VERSION_OPT' $$(LIB_OBJECTS) $$(LIBS) -lc'
+ SHARED_CFLAGS="-fpic"
+ ;;
+ mips-sgi-irix*)