[PATCH] D46718: Setup ORIGIN/NetBSD option in sanitizer tests

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 10 12:54:25 PDT 2018


krytarowski created this revision.
krytarowski added reviewers: joerg, vitalybuka, kcc.
krytarowski added a project: Sanitizers.
Herald added subscribers: llvm-commits, fedor.sergeev, emaste.

NetBSD can use the approach that exists in FreeBSD, Linux and SunOS.

Pick the FreeBSD one as marking programs with "-z origin" is useful.

Sponsored by <The NetBSD Foundation>


Repository:
  rL LLVM

https://reviews.llvm.org/D46718

Files:
  test/lit.common.cfg


Index: test/lit.common.cfg
===================================================================
--- test/lit.common.cfg
+++ test/lit.common.cfg
@@ -312,7 +312,7 @@
 if config.host_os == 'Darwin':
   config.substitutions.append( ("%ld_flags_rpath_exe", '-Wl,-rpath, at executable_path/ %dynamiclib') )
   config.substitutions.append( ("%ld_flags_rpath_so", '-install_name @rpath/`basename %dynamiclib`') )
-elif config.host_os == 'FreeBSD':
+elif config.host_os == 'FreeBSD' or config.host_os == 'NetBSD':
   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':


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46718.146194.patch
Type: text/x-patch
Size: 719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180510/34cc3b88/attachment.bin>


More information about the llvm-commits mailing list