From 3e8106955b9077bd9b95837b63de4577d896c194 Mon Sep 17 00:00:00 2001
From: John Wohlbier <wohlbier@users.noreply.github.com>
Date: Fri, 20 Jan 2017 13:34:40 -0500
Subject: [PATCH] For qt3, append to LD_LIBRARY_PATH, do not nuke it (#2862)

* libmonitor does not exist at
http://libmonitor.googlecode.com/svn/trunk/

Change location to HPCToolkit version at github. Specify the hash corresponding
to the 20130218 version.

* When xcb is version 1.11, patch the configure file so it doesn't trip on
pthread-stubs and xau.

* Add os.getcwd()/lib to LD_LIBRARY_PATH, instead of nuking
existing LD_LIBRARY_PATH.
---
 var/spack/repos/builtin/packages/qt/package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py
index 95698018fa..447af5f1af 100644
--- a/var/spack/repos/builtin/packages/qt/package.py
+++ b/var/spack/repos/builtin/packages/qt/package.py
@@ -227,7 +227,7 @@ def common_config_args(self):
     @when('@3')
     def configure(self):
         # A user reported that this was necessary to link Qt3 on ubuntu
-        os.environ['LD_LIBRARY_PATH'] = os.getcwd() + '/lib'
+        os.environ['LD_LIBRARY_PATH'] += os.pathsep + os.getcwd() + '/lib'
         configure('-prefix', self.prefix,
                   '-v',
                   '-thread',
-- 
GitLab