aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 1 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index 484614949f..2a6bef671f 100644
--- a/configure.in
+++ b/configure.in
@@ -1045,11 +1045,7 @@ EOF
int _start (void) { return 0; }
int __start (void) { return 0; }
int foo (void) { return 1; }
-#ifdef __i386__
-asm (".section .init_array\n\t.long foo");
-#else
-# error "define appropriately for the architecture"
-#endif
+int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
EOF
if AC_TRY_COMMAND([${CC-cc} -o conftest conftest.c
-static -nostartfiles -nostdlib 1>&AC_FD_CC])