From 83f5d15c88589620ba29353e2e7b672f5fc57fc2 Mon Sep 17 00:00:00 2001 From: Charles Wilson Date: Sat, 28 Aug 2010 18:27:15 -0400 Subject: [PATCH] Minor sysroot fixups. * libltdl/m4/libtool.m4 (_LT_WITH_SYSROOT): Fix typo. * tests/sysroot.at: Search also for crt0.o to accommodate cygwin. Signed-off-by: Charles Wilson --- ChangeLog | 6 ++++++ libltdl/m4/libtool.m4 | 2 +- tests/sysroot.at | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9ba13433b..e2f85000a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-08-28 Charles Wilson + + Minor sysroot fixups. + * libltdl/m4/libtool.m4 (_LT_WITH_SYSROOT): Fix typo. + * tests/sysroot.at: Search also for crt0.o to accommodate cygwin. + 2010-08-22 Ralf Wildenhues fix AIX testsuite regression diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 5bf28b77e..a5ebc267b 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -1182,7 +1182,7 @@ lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then - lt_sysroot=`$GCC --print-sysroot 2>/dev/null` + lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) diff --git a/tests/sysroot.at b/tests/sysroot.at index c0ac6d166..2a271347a 100644 --- a/tests/sysroot.at +++ b/tests/sysroot.at @@ -34,7 +34,7 @@ AT_CHECK([test -n "$gcc_sysroot" || exit 77]) # Detect installation prefix for the compiler prefix= -for i in crt1.o crt2.o crti.o; do +for i in crt0.o crt1.o crt2.o crti.o; do j=`$CC --print-file-name $i 2> /dev/null` test $? = 0 || continue case "$j" in -- 2.39.5