summaryrefslogtreecommitdiff
path: root/testsuite/mk
diff options
context:
space:
mode:
authorGabor Pali <pali.gabor@gmail.com>2013-04-21 19:19:26 +0200
committerGabor Pali <pali.gabor@gmail.com>2013-04-21 19:25:17 +0200
commitc3d24366aea5589ee419403a6a8450242b9e21a8 (patch)
treef7b442f2a461420b6eb6ec98cb3b256c2adee877 /testsuite/mk
parentb917510409e9549150405df6bcb574cdefc424ac (diff)
downloadhaskell-c3d24366aea5589ee419403a6a8450242b9e21a8.tar.gz
Fix detection of library flavors on FreeBSD
Diffstat (limited to 'testsuite/mk')
-rw-r--r--testsuite/mk/test.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk
index 3ba6f74e9c..5c9e1ad184 100644
--- a/testsuite/mk/test.mk
+++ b/testsuite/mk/test.mk
@@ -48,9 +48,9 @@ RUNTEST_OPTS += -e ghc_with_native_codegen=0
endif
BASE_LIBDIR := $(shell "$(GHC_PKG)" field base library-dirs | sed 's/^[^:]*: *//')
-HAVE_VANILLA := $(shell if [ -f $(subst \,/,$(BASE_LIBDIR))/Prelude.hi ]; then echo YES; else echo NO; fi)
-HAVE_DYNAMIC := $(shell if [ -f $(subst \,/,$(BASE_LIBDIR))/Prelude.dyn_hi ]; then echo YES; else echo NO; fi)
-HAVE_PROFILING := $(shell if [ -f $(subst \,/,$(BASE_LIBDIR))/Prelude.p_hi ]; then echo YES; else echo NO; fi)
+HAVE_VANILLA := $(shell if [ -f "$(subst \,/,$(BASE_LIBDIR))/Prelude.hi" ]; then echo YES; else echo NO; fi)
+HAVE_DYNAMIC := $(shell if [ -f "$(subst \,/,$(BASE_LIBDIR))/Prelude.dyn_hi" ]; then echo YES; else echo NO; fi)
+HAVE_PROFILING := $(shell if [ -f "$(subst \,/,$(BASE_LIBDIR))/Prelude.p_hi" ]; then echo YES; else echo NO; fi)
ifeq "$(HAVE_VANILLA)" "YES"
RUNTEST_OPTS += -e ghc_with_vanilla=1