Hi ports --
I was taking a look at the armv7 bulk results posted yesterday looking
to fix some of them. I noticed that editors/zile has been broken since
at least the 2021-01-19 arm bulk with this error:
ld: error: /usr/local/lib/libgc.so.5.0: undefined reference to
__aeabi_unwind_cpp_pr0 [--no-allow-shlib-undefined]
ld: error: /usr/local/lib/libgc.so.5.0: undefined reference to
__aeabi_unwind_cpp_pr1 [--no-allow-shlib-undefined]
Attached is a patch to fix things. -lgc needs -lc++abi on armv7 in order
to pick up those symbols. With this, zile builds and runs fine on my
BeagleBone Black.
I'm unsure if this is the best way to handle things; open to suggestions.
OK?
~Brian
Index: Makefile
===================================================================
RCS file: /cvs/ports/editors/zile/Makefile,v
retrieving revision 1.53
diff -u -p -r1.53 Makefile
--- Makefile 11 Mar 2022 18:58:40 -0000 1.53
+++ Makefile 9 May 2022 14:25:29 -0000
@@ -21,4 +21,11 @@ CONFIGURE_STYLE=gnu
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include"
+.if ${MACHINE_ARCH:Marm}
+# -lgc needs -lc++abi to prevent
+# undefined reference to __aeabi_unwind_cpp_pr0 errors
+WANTLIB += c++abi
+CONFIGURE_ENV+= LDFLAGS="-lc++abi -L${LOCALBASE}/lib"
+.endif
+
.include <bsd.port.mk>