Date: Fri, 13 Dec 2024 11:53:49 GMT From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: c6132acf5a4d - main - lang/gforth: mend another tricky issue discovered with GCC 14 Message-ID: <202412131153.4BDBrnv1078730@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=c6132acf5a4df3c177bf89802f380630f2ddd743 commit c6132acf5a4df3c177bf89802f380630f2ddd743 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2024-12-13 11:53:06 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2024-12-13 11:53:06 +0000 lang/gforth: mend another tricky issue discovered with GCC 14 When checking whether the linker accepts -export-dynamic flag, the configure script tries to build, literally, the following short program: ``main(){exit(0);}'', which is not well-formed against the modern standards (missing return type and implicit function declaration). PR: 281238 --- lang/gforth/files/patch-configure | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lang/gforth/files/patch-configure b/lang/gforth/files/patch-configure new file mode 100644 index 000000000000..f72c2e3eebad --- /dev/null +++ b/lang/gforth/files/patch-configure @@ -0,0 +1,12 @@ +--- configure.orig 2014-06-13 22:52:28 UTC ++++ configure +@@ -4730,7 +4730,8 @@ if test "$cross_compiling" = yes; then : + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ +-main(){exit(0);} ++#include <stdlib.h> ++int main(void) { exit(0); } + _ACEOF + if ac_fn_c_try_run "$LINENO"; then : + ac_export_dynamic=yes
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412131153.4BDBrnv1078730>