mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04: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
12 lines
336 B
Text
12 lines
336 B
Text
--- 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
|