libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] [cygwin] Minor sysroot fixups.


From: Vincent Torri
Subject: Re: [PATCH] [cygwin] Minor sysroot fixups.
Date: Sun, 29 Aug 2010 00:38:14 +0200 (CEST)



On Sat, 28 Aug 2010, Charles Wilson wrote:

libltdl/m4/libtool.m4 (_LT_WITH_SYSROOT): Fix typo.
tests/sysroot.at: Search also for crt0.o to accommodate cygwin.
---
Somehow this patch got dropped when the sysroot branch
was merged.  Rebased against master...

OK to push?

--
Chuck

libltdl/m4/libtool.m4 |    2 +-
tests/sysroot.at      |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index a7141c5..e03543b 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -1183,7 +1183,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`

what is the interest of testing $GCC if you use $CC ?

Vincent Torri

   fi
   ;; #(
 /*)
diff --git a/tests/sysroot.at b/tests/sysroot.at
index c0ac6d1..2a27134 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
--
1.7.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]