forked from OSchip/llvm-project
[Asan] Link lit tests shared libraries with -Wl,z,origin on FreeBSD
Differential Revision: http://reviews.llvm.org/D8834 llvm-svn: 235297
This commit is contained in:
parent
c22555d977
commit
aff5bb0518
|
@ -138,7 +138,10 @@ config.available_features.add("asan-" + config.bits + "-bits")
|
|||
if config.host_os == 'Darwin':
|
||||
config.substitutions.append( ("%ld_flags_rpath_exe", '-Wl,-rpath,@executable_path/ %dynamiclib') )
|
||||
config.substitutions.append( ("%ld_flags_rpath_so", '-install_name @rpath/`basename %dynamiclib`') )
|
||||
elif config.host_os in ['Linux', 'FreeBSD']:
|
||||
elif config.host_os == 'FreeBSD':
|
||||
config.substitutions.append( ("%ld_flags_rpath_exe", "-Wl,-z,origin -Wl,-rpath,\$ORIGIN -L%T -l%xdynamiclib_namespec") )
|
||||
config.substitutions.append( ("%ld_flags_rpath_so", '') )
|
||||
elif config.host_os == 'Linux':
|
||||
config.substitutions.append( ("%ld_flags_rpath_exe", "-Wl,-rpath,\$ORIGIN -L%T -l%xdynamiclib_namespec") )
|
||||
config.substitutions.append( ("%ld_flags_rpath_so", '') )
|
||||
|
||||
|
|
Loading…
Reference in New Issue