diff options
author | Ian Lynagh <igloo@earth.li> | 2007-08-15 11:14:32 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-08-15 11:14:32 +0000 |
commit | 22010da1a4517529292991ab550bba6d3c3e7523 (patch) | |
tree | cc3e40089b65a3c67ffca8490b393d4e42e822ac /includes/Makefile | |
parent | 24311993dfecd6225fb3b26c07d2d054fab5387a (diff) | |
download | haskell-22010da1a4517529292991ab550bba6d3c3e7523.tar.gz |
Fix the build when GMP_INCLUDE_DIRS == ""
Diffstat (limited to 'includes/Makefile')
-rw-r--r-- | includes/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/Makefile b/includes/Makefile index 2acf07531e..32ab5f8c49 100644 --- a/includes/Makefile +++ b/includes/Makefile @@ -27,10 +27,13 @@ ifeq "$(GhcEnableTablesNextToCode) $(GhcUnregisterised)" "YES NO" SRC_CC_OPTS += -DTABLES_NEXT_TO_CODE endif +SRC_CC_OPTS += -I. -I../rts ifeq "$(HaveLibGmp)" "YES" -SRC_CC_OPTS += -I. -I../rts -I$(GMP_INCLUDE_DIRS) +ifneq "$(GMP_INCLUDE_DIRS)" "" +SRC_CC_OPTS += -I$(GMP_INCLUDE_DIRS) +endif else -SRC_CC_OPTS += -I. -I../rts -I../gmp/gmpbuild +SRC_CC_OPTS += -I../gmp/gmpbuild endif ifneq "$(GhcWithSMP)" "YES" |