Browse files

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.
  • Loading branch information...
1 parent ba2c753 commit 387c4d1bf720b2c9d67bfaed573ba1c5ba47138e @igfoo igfoo committed Mar 19, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 rules/library-path.mk
View
6 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

0 comments on commit 387c4d1

Please sign in to comment.