summaryrefslogtreecommitdiff
path: root/test/profile/instrprof-dlopen.test
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-05-18 18:39:19 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-05-18 18:39:19 +0000
commit19c0fc30c5c29e9e30b747beb55c299015a5d204 (patch)
treed06144f0e1c1f0f75e89a49441e77d34e7442781 /test/profile/instrprof-dlopen.test
parent4040fbc23030a4ae382a851e5f8fe7534963331b (diff)
profile: explicitly link against libdl
Add an explicit link against libdl. libdl may not be indirectly pulled on some Linux hosts. Explicitly link against it. This should hopefully improve the state of the build bots. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209096 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile/instrprof-dlopen.test')
-rw-r--r--test/profile/instrprof-dlopen.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/profile/instrprof-dlopen.test b/test/profile/instrprof-dlopen.test
index bba21334f..e4ca54109 100644
--- a/test/profile/instrprof-dlopen.test
+++ b/test/profile/instrprof-dlopen.test
@@ -1,8 +1,8 @@
RUN: mkdir -p %t.d
RUN: %clang_profgen -o %t.d/func.shared -fPIC -shared %S/Inputs/instrprof-dlopen-func.c
RUN: %clang_profgen -o %t.d/func2.shared -fPIC -shared %S/Inputs/instrprof-dlopen-func2.c
-RUN: %clang -o %t-local -fPIC -DDLOPEN_FUNC_DIR=\"%t.d\" -DDLOPEN_FLAGS=RTLD_LOCAL %S/Inputs/instrprof-dlopen-main.c
-RUN: %clang -o %t-global -fPIC -DDLOPEN_FUNC_DIR=\"%t.d\" -DDLOPEN_FLAGS=RTLD_GLOBAL %S/Inputs/instrprof-dlopen-main.c
+RUN: %clang -o %t-local -fPIC -DDLOPEN_FUNC_DIR=\"%t.d\" -DDLOPEN_FLAGS=RTLD_LOCAL %S/Inputs/instrprof-dlopen-main.c -ldl
+RUN: %clang -o %t-global -fPIC -DDLOPEN_FUNC_DIR=\"%t.d\" -DDLOPEN_FLAGS=RTLD_GLOBAL %S/Inputs/instrprof-dlopen-main.c -ldl
RUN: %clang -c -o %t.d/main.o %S/Inputs/instrprof-dlopen-main.c
RUN: %clang_profgen -o %t-static %S/Inputs/instrprof-dlopen-func.c %S/Inputs/instrprof-dlopen-func2.c %t.d/main.o