Update the fix for qt3 build by setting LD_LIBRARY_PATH instead of checking for whether it is set or not per Adams comment that spack clears LD_LIBRARY_PATH.
This commit is contained in:
parent
60d58613ed
commit
085ca7392b
@ -227,12 +227,10 @@ def common_config_args(self):
|
||||
@when('@3')
|
||||
def configure(self):
|
||||
# A user reported that this was necessary to link Qt3 on ubuntu
|
||||
# However, if LD_LIBRARY_PATH is not set the qt build fails, so check
|
||||
# and set LD_LIBRARY_PATH if not set, update if it is set.
|
||||
if not os.environ.get('LD_LIBRARY_PATH'):
|
||||
os.environ['LD_LIBRARY_PATH'] = os.pathsep + os.getcwd() + '/lib'
|
||||
else:
|
||||
os.environ['LD_LIBRARY_PATH'] += os.pathsep + os.getcwd() + '/lib'
|
||||
# The previous change tried to append to LD_LIBRARY_PATH, but since
|
||||
# spack clears LD_LIBRARY_PATH do not append to the LD_LIBRARY_PATH
|
||||
# instead set LD_LIBRARY_PATH.
|
||||
os.environ['LD_LIBRARY_PATH'] = os.pathsep + os.getcwd() + '/lib'
|
||||
|
||||
configure('-prefix', self.prefix,
|
||||
'-v',
|
||||
|
Loading…
Reference in New Issue
Block a user