Commit ec155f69 authored by Ian Lynagh's avatar Ian Lynagh

Define RelocatableBuild variable

default YES on Windows, NO otherwise.
parent eb13c90e
......@@ -92,7 +92,7 @@ space=$(empty) $(empty)
# -----------------------------------------------------------------------------
docdir := $(docdir)/libraries/$$pkgid
ifeq "$(Windows)" "YES"
ifeq "$(RelocatableBuild)" "YES"
# On Windows we want to make moveable bindists, but we need to tell
# ghc-pkg where the haddock docs are. Therefore we completely ignore
# where the user tells us to put the haddock documentation and put it
......
......@@ -291,6 +291,14 @@ else
GhcEnableTablesNextToCode=YES
endif
# On Windows we normally want to make a relocatable bindist, to we
# ignore flags like libdir
ifeq "$(Windows)" "YES"
RelocatableBuild = YES
else
RelocatableBuild = NO
endif
# When building bindists we set this to yes so that the binaries are as
# portable as possible.
BeConservative = NO
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment