]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Revert faulty patch
authorRoy Marples <roy@marples.name>
Sun, 21 Sep 2014 20:05:20 +0000 (20:05 +0000)
committerRoy Marples <roy@marples.name>
Sun, 21 Sep 2014 20:05:20 +0000 (20:05 +0000)
configure

index 5be098c03ea3d7ef5c2d0f4ca8e8b786f60a52e5..b6eafbe6cd1435999d1c401c01530bbf954673d2 100755 (executable)
--- a/configure
+++ b/configure
@@ -15,8 +15,8 @@ STRLCPY=
 UDEV=
 OS=
 BUILD=
+BUILDCC=
 HOST=
-HOSTCC=
 TARGET=
 DEBUG=
 FORK=
@@ -244,14 +244,16 @@ echo "LIBDIR=             $LIBDIR" >>$CONFIG_MK
 echo "MANDIR=          $MANDIR" >>$CONFIG_MK
 
 # Always obey CC.
+# However, if CC is not specified and we are given GNU style
+# --host or --build targets the expectation is we try and match that
+# to a compiler.
 if [ -n "$CC" ]; then
        HOSTCC=
 else
        CC=cc
        _COMPILERS="cc clang gcc pcc icc"
 fi
-# Only look for a cross compiler if --host and --build are not the same
-if [ -n "$HOSTCC" -a "$BUILD" != "$$HOST" ]; then
+if [ -n "$HOSTCC" ]; then
        for _CC in $_COMPILERS; do
                _CC=$(_which "$HOSTCC$_CC")
                if [ -x "$_CC" ]; then