diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-03-19 00:46:15 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-03-19 00:46:15 +0000 |
commit | 387c4d1bf720b2c9d67bfaed573ba1c5ba47138e (patch) | |
tree | 9c152e1e91f29b96f6e171e84b10514c9eba469a /rules | |
parent | ba2c7535a8461be8ce72ccdd4c34173568787491 (diff) | |
download | haskell-387c4d1bf720b2c9d67bfaed573ba1c5ba47138e.tar.gz |
Optimistically assume that LD_LIBRARY_PATH works for all platforms
other than Windows and OS X.
It's known to work on Linux and FreeBSD.
Diffstat (limited to 'rules')
-rw-r--r-- | rules/library-path.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rules/library-path.mk b/rules/library-path.mk index d6e39743e2..5c61abefa3 100644 --- a/rules/library-path.mk +++ b/rules/library-path.mk @@ -11,11 +11,11 @@ # ----------------------------------------------------------------------------- # $1 = paths to prepend -ifeq "$(TargetOS_CPP)" "linux" -prependLibraryPath = export LD_LIBRARY_PATH="$1:$$LD_LIBRARY_PATH" +ifeq "$(TargetOS_CPP)" "mingw32" +prependLibraryPath = $(error Do not know how to prependLibraryPath on Windows) else ifeq "$(TargetOS_CPP)" "darwin" prependLibraryPath = export DYLD_LIBRARY_PATH="$1:$$DYLD_LIBRARY_PATH" else -prependLibraryPath = $(error Do not know how to prependLibraryPath on $(TargetOS_CPP)) +prependLibraryPath = export LD_LIBRARY_PATH="$1:$$LD_LIBRARY_PATH" endif |