Fix #11814 by throwing more stuff into InScopeSets
[ghc.git] / rules / library-path.mk
1 # -----------------------------------------------------------------------------
2 #
3 # (c) 2010 The University of Glasgow
4 #
5 # This file is part of the GHC build system.
6 #
7 # To understand how the build system works and how to modify it, see
8 # http://ghc.haskell.org/trac/ghc/wiki/Building/Architecture
9 # http://ghc.haskell.org/trac/ghc/wiki/Building/Modifying
10 #
11 # -----------------------------------------------------------------------------
12
13 # $1 = paths to prepend
14 ifeq "$(TargetOS_CPP)" "mingw32"
15 prependLibraryPath = $(error Do not know how to prependLibraryPath on Windows)
16 else ifeq "$(TargetOS_CPP)" "darwin"
17 prependLibraryPath = export DYLD_LIBRARY_PATH="$1$${DYLD_LIBRARY_PATH:+:$$DYLD_LIBRARY_PATH}"
18 else
19 prependLibraryPath = export LD_LIBRARY_PATH="$1$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}"
20 endif
21