From a1c73a6d6d6c4b007d2778456c92ed1314313471 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 6 Dec 2014 22:08:51 +0000 Subject: [PATCH] Unify and cleanup rpath handling in tests. llvm-svn: 223594 --- libcxx/test/lit.cfg | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg index e79f22209ded..7c8d26875207 100644 --- a/libcxx/test/lit.cfg +++ b/libcxx/test/lit.cfg @@ -234,7 +234,6 @@ class Configuration(object): self.configure_obj_root() self.configure_use_system_lib() self.configure_use_clang_verify() - self.configure_env() self.configure_std_flag() self.configure_compile_flags() self.configure_link_flags() @@ -444,12 +443,12 @@ class Configuration(object): def configure_link_flags(self): # Configure library search paths abi_library_path = self.get_lit_conf('abi_library_path', '') - self.link_flags += ['-L' + self.obj_root + '/lib'] if not self.use_system_lib: - self.link_flags += ['-Wl,-rpath', '-Wl,' + self.obj_root + '/lib'] + self.link_flags += ['-L' + self.obj_root + '/lib'] + self.link_flags += ['-Wl,-rpath,' + self.obj_root + '/lib'] if abi_library_path: self.link_flags += ['-L' + abi_library_path, - '-Wl,-rpath', '-Wl,' + abi_library_path] + '-Wl,-rpath,' + abi_library_path] # Configure libraries self.link_flags += ['-lc++'] link_flags_str = self.get_lit_conf('link_flags') @@ -559,12 +558,6 @@ class Configuration(object): self.lit_config.note( "inferred target_triple as: %r" % self.config.target_triple) - def configure_env(self): - # Configure extra linker parameters. - if sys.platform == 'darwin': - if not self.use_system_lib: - self.env['DYLD_LIBRARY_PATH'] = os.path.join(self.obj_root, - 'lib') # name: The name of this test suite.