summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGurhan Ozen <gozen@redhat.com>2010-07-02 16:21:43 +0000
committerGurhan Ozen <gozen@redhat.com>2010-07-02 16:21:43 +0000
commit9e9d7f2d7f32027f7fc9ee5c365d8929c34c0f34 (patch)
treea246570147f80e65002697bef55fa04dd605dd87
parent24397c468598ba3c690f2199e1cffad0e2297bf4 (diff)
don't try to build hvm_detect if there is no gcc available
-rw-r--r--Tasks/distribution/install/default/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tasks/distribution/install/default/Makefile b/Tasks/distribution/install/default/Makefile
index fc1c15f..1c458f4 100644
--- a/Tasks/distribution/install/default/Makefile
+++ b/Tasks/distribution/install/default/Makefile
@@ -30,8 +30,10 @@ FILES=$(BUILT_FILES) $(METADATA) runtest.sh Makefile
build: $(BUILT_FILES)
ifeq ($(shell arch),x86_64)
@echo "x86_64 arch, hvm_detect will be built"
- gcc $(BINFILE).c -o ./$(BINFILE)
- chmod a+x ./$(BINFILE)
+ if which gcc; then
+ gcc $(BINFILE).c -o ./$(BINFILE)
+ chmod a+x ./$(BINFILE)
+ fi
endif
chmod a+x ./runtest.sh