summaryrefslogtreecommitdiff
path: root/demoscript/Util.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-11-21 00:25:58 +0100
committerJose <jose@zeroc.com>2014-11-21 00:25:58 +0100
commitd91c43b27167233345d78255908fec24fb1d71af (patch)
treebbe89eff20f712d7badbbc81b8339c66ccef911b /demoscript/Util.py
parentDistUtil typo (diff)
downloadice-d91c43b27167233345d78255908fec24fb1d71af.tar.bz2
ice-d91c43b27167233345d78255908fec24fb1d71af.tar.xz
ice-d91c43b27167233345d78255908fec24fb1d71af.zip
More updates for ICE-5931, ICE-5935
Diffstat (limited to 'demoscript/Util.py')
-rw-r--r--demoscript/Util.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/demoscript/Util.py b/demoscript/Util.py
index c295faa5e2a..446e5c7e6a1 100644
--- a/demoscript/Util.py
+++ b/demoscript/Util.py
@@ -284,8 +284,10 @@ def configurePaths():
if subdir:
binDir = os.path.join(binDir, subdir)
+ if isUbuntu() and iceHome == "/usr":
+ libDir = os.path.join(libDir, "x86_64-linux-gnu" if x64 else "i386-linux-gnu")
# Add x64 sub-directory
- if x64:
+ elif x64:
if isSolaris():
if isSparc():
libDir = os.path.join(libDir, "64")
@@ -299,16 +301,12 @@ def configurePaths():
libDir = libDir + "64"
binDir = binDir + "64"
- if isDarwin() and cpp11:
- libDir = os.path.join(libDir, "c++11")
- binDir = os.path.join(binDir, "c++11")
-
if binDir != os.path.join(getIceDir("cpp"), "bin"):
addenv("PATH", binDir)
#
# For OS X we don't need to set any library path for C++
#
- if libDir and not isDarwin():
+ if libDir and not isDarwin() and iceHome != "/usr":
addLdPath(libDir)
if not iceHome:
@@ -832,6 +830,8 @@ def addLdPath(libpath):
addenv("LD_LIBRARY_PATH_64", libpath)
else:
addenv("LD_LIBRARY_PATH", libpath)
+ elif isDarwin():
+ addenv("DYLD_LIBRARY_PATH", libpath)
else:
addenv("LD_LIBRARY_PATH", libpath)