mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* configure.in (libc_cv_asm_set_directive): Make sure that the
`.set' directive really worked by linking against a reference to the alias.
This commit is contained in:
11
configure
vendored
11
configure
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user