mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
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
This commit is contained in:
parent
b606f6cd31
commit
c6132acf5a
1 changed files with 12 additions and 0 deletions
12
lang/gforth/files/patch-configure
Normal file
12
lang/gforth/files/patch-configure
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue