Commit 387c4d1b authored by ian@well-typed.com's avatar ian@well-typed.com

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.
parent ba2c7535
......@@ -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
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