* configure.in (libc_cv_asm_set_directive): Make sure that the
authorRoland McGrath <roland@gnu.org>
Tue, 13 Jun 1995 22:16:50 +0000 (22:16 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 13 Jun 1995 22:16:50 +0000 (22:16 +0000)
  `.set' directive really worked by linking against a reference to
  the alias.

ChangeLog
configure
configure.in

index cea2df5..3f9082f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 Tue Jun 13 15:45:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
 
+       * configure.in (libc_cv_asm_set_directive): Make sure that the
+       `.set' directive really worked by linking against a reference to
+       the alias.
+
        * sysdeps/stub/init-first.c: Don't include <hurd.h>.
        [PIC] (soinit): Renamed to (global) _init.
 
index a543bef..466006b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1125,9 +1125,16 @@ else
   cat > conftest.s <<\EOF
 .text
 foo: .long 0
-.set bar,foo
+.set glibc_conftest_frobozz,foo
 EOF
-if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
+# The alpha-dec-osf1 assembler gives only a warning for `.set'
+# (but it doesn't work), so we must do a linking check to be sure.
+cat > conftest1.c <<\EOF
+extern int glibc_conftest_frobozz;
+main () { printf ("%d\n", glibc_conftest_frobozz); }
+EOF
+if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
+           conftest.s conftest1.c 1>&5 2>&5; then
   libc_cv_asm_set_directive=yes
 else
   libc_cv_asm_set_directive=no
index ce1dee1..7e1697d 100644 (file)
@@ -342,9 +342,16 @@ AC_CACHE_VAL(libc_cv_asm_set_directive, [dnl
 cat > conftest.s <<\EOF
 .text
 foo: .long 0
-.set bar,foo
+.set glibc_conftest_frobozz,foo
 EOF
-if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
+# The alpha-dec-osf1 assembler gives only a warning for `.set'
+# (but it doesn't work), so we must do a linking check to be sure.
+cat > conftest1.c <<\EOF
+extern int glibc_conftest_frobozz;
+main () { printf ("%d\n", glibc_conftest_frobozz); }
+EOF
+if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
+           conftest.s conftest1.c 1>&AC_FD_CC 2>&AC_FD_CC; then
   libc_cv_asm_set_directive=yes
 else
   libc_cv_asm_set_directive=no