diff --git a/Makefile b/Makefile index d8473e14..4622fde3 100755 --- a/Makefile +++ b/Makefile @@ -83,10 +83,10 @@ printenv: @make --no-print-directory toolcheck @make -i -s $(TARGET_DIR) @PATH=$(PATH):$(CROSS_DIR)/bin && \ - if type -p $(TARGET)-gcc >/dev/null 2>&1; then \ - echo "$(TARGET)-gcc found in PATH or in \$$CROSS_DIR/bin."; \ + if type -p $(TARGET_CC) >/dev/null 2>&1; then \ + echo "$(TARGET_CC) found in PATH or in \$$CROSS_DIR/bin."; \ else \ - echo "$(TARGET)-gcc not found in PATH or \$$CROSS_DIR/bin"; \ + echo "$(TARGET_CC) not found in PATH or \$$CROSS_DIR/bin"; \ echo "=> please check your setup. Maybe you need to 'make crosstool'."; \ fi @if ! LANG=C make -n preqs|grep -q "Nothing to be done"; then \ diff --git a/make/target-libs.mk b/make/target-libs.mk index 73ad762b..d3ed9a99 100644 --- a/make/target-libs.mk +++ b/make/target-libs.mk @@ -389,7 +389,7 @@ $(D)/openssl: $(ARCHIVE)/$(OPENSSL_SOURCE) | $(TARGET_DIR) -DOPENSSL_SMALL_FOOTPRINT \ $(TARGET_LDFLAGS) \ \ - --cross-compile-prefix=$(TARGET)- \ + --cross-compile-prefix=$(TARGET_CROSS) \ --prefix=/ \ --openssldir=/etc/ssl \ ; \