When testing the bindist, tell it where gcc is
authorIan Lynagh <igloo@earth.li>
Sat, 20 Nov 2010 15:59:20 +0000 (15:59 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 20 Nov 2010 15:59:20 +0000 (15:59 +0000)
The location isn't baked into the bindist, as it may differ from
machine to machine.

bindisttest/ghc.mk

index 0530ae0..4be2166 100644 (file)
@@ -34,7 +34,7 @@ test_bindist:
 ifeq "$(Windows)" "YES"
        mv bindisttest/a/b/c/$(BIN_DIST_NAME) $(BIN_DIST_INST_DIR)
 else
-       cd bindisttest/a/b/c/$(BIN_DIST_NAME) && ./configure --prefix=$(TOP)/$(BIN_DIST_INST_DIR)
+       cd bindisttest/a/b/c/$(BIN_DIST_NAME) && ./configure --prefix=$(TOP)/$(BIN_DIST_INST_DIR) --with-gcc="$(WhatGccIsCalled)"
        cd bindisttest/a/b/c/$(BIN_DIST_NAME) && $(MAKE) install
 endif
 ifeq "$(GhcProfiled)" "NO"