aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-12-02 07:37:28 +0000
committerAndreas Jaeger <aj@suse.de>2003-12-02 07:37:28 +0000
commit498031085659f4d8c75aebfba383344e9ea36f47 (patch)
tree782c9bf8ce0238571095a084aae400f609f4acd0 /configure.in
parent3583ea85248c31a3e3cf142ff9adfe7bd62f6707 (diff)
downloadglibc-498031085659f4d8c75aebfba383344e9ea36f47.zip
glibc-498031085659f4d8c75aebfba383344e9ea36f47.tar.gz
glibc-498031085659f4d8c75aebfba383344e9ea36f47.tar.bz2
* config.make.in (fno-unit-at-a-time): Define.
* configure.in: Add test for -fno-unit-at-a-time. Fix text for -fpie. * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time). * locale/Makefile (CFLAGS-loadlocale.c): Likewise. For linuxthreads: * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time). * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s): Likewise. For nptl: * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time). * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s): Likewise.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 9314a32..5dab7d6 100644
--- a/configure.in
+++ b/configure.in
@@ -1359,6 +1359,7 @@ EOF
AC_CACHE_CHECK(for -fpie, libc_cv_fpie, [dnl
cat > conftest.c <<EOF
int foo;
+main () { return 0;}
EOF
if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
-o conftest conftest.c 1>&AS_MESSAGE_LOG_FD])
@@ -1372,6 +1373,23 @@ EOF
AC_SUBST(libc_cv_fpie)
fi
+AC_CACHE_CHECK(for -fno-unit-at-a-time, libc_cv_fno_unit_at_a_time, [dnl
+cat > conftest.c <<EOF
+int foo;
+EOF
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -fno-unit-at-a-time
+ conftest.c 1>&AS_MESSAGE_LOG_FD])
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*])
+if test $libc_cv_fno_unit_at_a_time = yes; then
+ fno_unit_at_a_time=-fno-unit-at-a-time
+fi
+AC_SUBST(fno_unit_at_a_time)
+
if test $elf != yes; then
AC_CACHE_CHECK(for .init and .fini sections, libc_cv_have_initfini,
[AC_TRY_COMPILE(, [asm (".section .init");