mirror of
https://sourceware.org/git/glibc.git
synced 2024-09-19 16:10:01 +00:00
configure: Don't check LD -v --help for LIBC_LINKER_FEATURE
When LIBC_LINKER_FEATURE is used to check a linker option with the equal sign, it will likely fail because the LD -v --help output may look like `-z lam-report=[none|warning|error]` while the needle is something like `-z lam-report=warning`. The LD -v --help filter doesn't save much time, so just remove it.
This commit is contained in:
parent
f9b152c83f
commit
8438135d34
19
aclocal.m4
vendored
19
aclocal.m4
vendored
@ -224,20 +224,17 @@ AC_DEFUN([LIBC_LINKER_FEATURE],
|
|||||||
[AC_MSG_CHECKING([for linker that supports $1])
|
[AC_MSG_CHECKING([for linker that supports $1])
|
||||||
libc_linker_feature=no
|
libc_linker_feature=no
|
||||||
if test x"$gnu_ld" = x"yes"; then
|
if test x"$gnu_ld" = x"yes"; then
|
||||||
libc_linker_check=`$LD -v --help 2>/dev/null | grep "\$1"`
|
cat > conftest.c <<EOF
|
||||||
if test -n "$libc_linker_check"; then
|
|
||||||
cat > conftest.c <<EOF
|
|
||||||
int _start (void) { return 42; }
|
int _start (void) { return 42; }
|
||||||
EOF
|
EOF
|
||||||
if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
||||||
$2 -nostdlib -nostartfiles
|
$2 -nostdlib -nostartfiles
|
||||||
-fPIC -shared -o conftest.so conftest.c
|
-fPIC -shared -o conftest.so conftest.c
|
||||||
1>&AS_MESSAGE_LOG_FD])
|
1>&AS_MESSAGE_LOG_FD])
|
||||||
then
|
then
|
||||||
libc_linker_feature=yes
|
libc_linker_feature=yes
|
||||||
fi
|
|
||||||
rm -f conftest*
|
|
||||||
fi
|
fi
|
||||||
|
rm -f conftest*
|
||||||
fi
|
fi
|
||||||
if test $libc_linker_feature = yes; then
|
if test $libc_linker_feature = yes; then
|
||||||
$3
|
$3
|
||||||
|
76
configure
vendored
76
configure
vendored
@ -5979,25 +5979,22 @@ fi
|
|||||||
$as_echo_n "checking for linker that supports -z execstack... " >&6; }
|
$as_echo_n "checking for linker that supports -z execstack... " >&6; }
|
||||||
libc_linker_feature=no
|
libc_linker_feature=no
|
||||||
if test x"$gnu_ld" = x"yes"; then
|
if test x"$gnu_ld" = x"yes"; then
|
||||||
libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z execstack"`
|
cat > conftest.c <<EOF
|
||||||
if test -n "$libc_linker_check"; then
|
|
||||||
cat > conftest.c <<EOF
|
|
||||||
int _start (void) { return 42; }
|
int _start (void) { return 42; }
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
||||||
-Wl,-z,execstack -nostdlib -nostartfiles
|
-Wl,-z,execstack -nostdlib -nostartfiles
|
||||||
-fPIC -shared -o conftest.so conftest.c
|
-fPIC -shared -o conftest.so conftest.c
|
||||||
1>&5'
|
1>&5'
|
||||||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
||||||
(eval $ac_try) 2>&5
|
(eval $ac_try) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; }
|
test $ac_status = 0; }; }
|
||||||
then
|
then
|
||||||
libc_linker_feature=yes
|
libc_linker_feature=yes
|
||||||
fi
|
|
||||||
rm -f conftest*
|
|
||||||
fi
|
fi
|
||||||
|
rm -f conftest*
|
||||||
fi
|
fi
|
||||||
if test $libc_linker_feature = yes; then
|
if test $libc_linker_feature = yes; then
|
||||||
libc_cv_z_execstack=yes
|
libc_cv_z_execstack=yes
|
||||||
@ -6012,25 +6009,22 @@ $as_echo "$libc_linker_feature" >&6; }
|
|||||||
$as_echo_n "checking for linker that supports -z start-stop-gc... " >&6; }
|
$as_echo_n "checking for linker that supports -z start-stop-gc... " >&6; }
|
||||||
libc_linker_feature=no
|
libc_linker_feature=no
|
||||||
if test x"$gnu_ld" = x"yes"; then
|
if test x"$gnu_ld" = x"yes"; then
|
||||||
libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z start-stop-gc"`
|
cat > conftest.c <<EOF
|
||||||
if test -n "$libc_linker_check"; then
|
|
||||||
cat > conftest.c <<EOF
|
|
||||||
int _start (void) { return 42; }
|
int _start (void) { return 42; }
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
||||||
-Wl,-z,start-stop-gc -nostdlib -nostartfiles
|
-Wl,-z,start-stop-gc -nostdlib -nostartfiles
|
||||||
-fPIC -shared -o conftest.so conftest.c
|
-fPIC -shared -o conftest.so conftest.c
|
||||||
1>&5'
|
1>&5'
|
||||||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
||||||
(eval $ac_try) 2>&5
|
(eval $ac_try) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; }
|
test $ac_status = 0; }; }
|
||||||
then
|
then
|
||||||
libc_linker_feature=yes
|
libc_linker_feature=yes
|
||||||
fi
|
|
||||||
rm -f conftest*
|
|
||||||
fi
|
fi
|
||||||
|
rm -f conftest*
|
||||||
fi
|
fi
|
||||||
if test $libc_linker_feature = yes; then
|
if test $libc_linker_feature = yes; then
|
||||||
libc_cv_z_start_stop_gc=yes
|
libc_cv_z_start_stop_gc=yes
|
||||||
@ -6046,25 +6040,22 @@ have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
|
|||||||
$as_echo_n "checking for linker that supports --depaudit... " >&6; }
|
$as_echo_n "checking for linker that supports --depaudit... " >&6; }
|
||||||
libc_linker_feature=no
|
libc_linker_feature=no
|
||||||
if test x"$gnu_ld" = x"yes"; then
|
if test x"$gnu_ld" = x"yes"; then
|
||||||
libc_linker_check=`$LD -v --help 2>/dev/null | grep "\--depaudit"`
|
cat > conftest.c <<EOF
|
||||||
if test -n "$libc_linker_check"; then
|
|
||||||
cat > conftest.c <<EOF
|
|
||||||
int _start (void) { return 42; }
|
int _start (void) { return 42; }
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
||||||
-Wl,--depaudit,x -nostdlib -nostartfiles
|
-Wl,--depaudit,x -nostdlib -nostartfiles
|
||||||
-fPIC -shared -o conftest.so conftest.c
|
-fPIC -shared -o conftest.so conftest.c
|
||||||
1>&5'
|
1>&5'
|
||||||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
||||||
(eval $ac_try) 2>&5
|
(eval $ac_try) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; }
|
test $ac_status = 0; }; }
|
||||||
then
|
then
|
||||||
libc_linker_feature=yes
|
libc_linker_feature=yes
|
||||||
fi
|
|
||||||
rm -f conftest*
|
|
||||||
fi
|
fi
|
||||||
|
rm -f conftest*
|
||||||
fi
|
fi
|
||||||
if test $libc_linker_feature = yes; then
|
if test $libc_linker_feature = yes; then
|
||||||
libc_cv_depaudit=yes
|
libc_cv_depaudit=yes
|
||||||
@ -6080,25 +6071,22 @@ have-depaudit = $libc_cv_depaudit"
|
|||||||
$as_echo_n "checking for linker that supports --no-dynamic-linker... " >&6; }
|
$as_echo_n "checking for linker that supports --no-dynamic-linker... " >&6; }
|
||||||
libc_linker_feature=no
|
libc_linker_feature=no
|
||||||
if test x"$gnu_ld" = x"yes"; then
|
if test x"$gnu_ld" = x"yes"; then
|
||||||
libc_linker_check=`$LD -v --help 2>/dev/null | grep "\--no-dynamic-linker"`
|
cat > conftest.c <<EOF
|
||||||
if test -n "$libc_linker_check"; then
|
|
||||||
cat > conftest.c <<EOF
|
|
||||||
int _start (void) { return 42; }
|
int _start (void) { return 42; }
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
||||||
-Wl,--no-dynamic-linker -nostdlib -nostartfiles
|
-Wl,--no-dynamic-linker -nostdlib -nostartfiles
|
||||||
-fPIC -shared -o conftest.so conftest.c
|
-fPIC -shared -o conftest.so conftest.c
|
||||||
1>&5'
|
1>&5'
|
||||||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
||||||
(eval $ac_try) 2>&5
|
(eval $ac_try) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; }
|
test $ac_status = 0; }; }
|
||||||
then
|
then
|
||||||
libc_linker_feature=yes
|
libc_linker_feature=yes
|
||||||
fi
|
|
||||||
rm -f conftest*
|
|
||||||
fi
|
fi
|
||||||
|
rm -f conftest*
|
||||||
fi
|
fi
|
||||||
if test $libc_linker_feature = yes; then
|
if test $libc_linker_feature = yes; then
|
||||||
libc_cv_no_dynamic_linker=yes
|
libc_cv_no_dynamic_linker=yes
|
||||||
|
19
sysdeps/unix/sysv/linux/powerpc/configure
vendored
19
sysdeps/unix/sysv/linux/powerpc/configure
vendored
@ -80,25 +80,22 @@ fi
|
|||||||
$as_echo_n "checking for linker that supports --no-tls-get-addr-optimize... " >&6; }
|
$as_echo_n "checking for linker that supports --no-tls-get-addr-optimize... " >&6; }
|
||||||
libc_linker_feature=no
|
libc_linker_feature=no
|
||||||
if test x"$gnu_ld" = x"yes"; then
|
if test x"$gnu_ld" = x"yes"; then
|
||||||
libc_linker_check=`$LD -v --help 2>/dev/null | grep "\--no-tls-get-addr-optimize"`
|
cat > conftest.c <<EOF
|
||||||
if test -n "$libc_linker_check"; then
|
|
||||||
cat > conftest.c <<EOF
|
|
||||||
int _start (void) { return 42; }
|
int _start (void) { return 42; }
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
||||||
-Wl,--no-tls-get-addr-optimize -nostdlib -nostartfiles
|
-Wl,--no-tls-get-addr-optimize -nostdlib -nostartfiles
|
||||||
-fPIC -shared -o conftest.so conftest.c
|
-fPIC -shared -o conftest.so conftest.c
|
||||||
1>&5'
|
1>&5'
|
||||||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
||||||
(eval $ac_try) 2>&5
|
(eval $ac_try) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; }
|
test $ac_status = 0; }; }
|
||||||
then
|
then
|
||||||
libc_linker_feature=yes
|
libc_linker_feature=yes
|
||||||
fi
|
|
||||||
rm -f conftest*
|
|
||||||
fi
|
fi
|
||||||
|
rm -f conftest*
|
||||||
fi
|
fi
|
||||||
if test $libc_linker_feature = yes; then
|
if test $libc_linker_feature = yes; then
|
||||||
libc_cv_tls_get_addr_optimize=yes
|
libc_cv_tls_get_addr_optimize=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user