mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
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
13 lines
336 B
Plaintext
13 lines
336 B
Plaintext
--- 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
|