OSDN Git Service

Fix linux link error when using LLVM reactor backend.
authorBen Clayton <headlessclayton@gmail.com>
Fri, 1 Feb 2019 09:38:45 +0000 (09:38 +0000)
committerChris Forbes <chrisforbes@google.com>
Tue, 5 Feb 2019 11:08:04 +0000 (11:08 +0000)
commit8f71f7311f29a2ef769d3d61bdbc73ecd6ceccb2
tree74cae8fcbf26e1e8e07d94675edd0ad0e482e76b
parent049ff387333469cf9b6b92c0014ac034c0cac18e
Fix linux link error when using LLVM reactor backend.

Seen building on Ubuntu 18.04.1:

```
libllvm.a(DynamicLibrary.cpp.o): In function `llvm::sys::DynamicLibrary::HandleSet::~HandleSet()':
DynamicLibrary.cpp:(.text._ZN4llvm3sys14DynamicLibrary9HandleSetD2Ev+0x1c): undefined reference to `dlclose'
DynamicLibrary.cpp:(.text._ZN4llvm3sys14DynamicLibrary9HandleSetD2Ev+0x2c): undefined reference to `dlclose'
libllvm.a(DynamicLibrary.cpp.o): In function `llvm::sys::DynamicLibrary::HandleSet::DLSym(void*, char const*)':
DynamicLibrary.cpp:(.text._ZN4llvm3sys14DynamicLibrary9HandleSet5DLSymEPvPKc+0x1): undefined reference to `dlsym'
```

Also removes --no-as-needed hack.

Bug: b/123360006
Change-Id: Icef1078e68cbf68af991e52f7fbb6e8d449e0809
Reviewed-on: https://swiftshader-review.googlesource.com/c/24310
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
Tested-by: Chris Forbes <chrisforbes@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
CMakeLists.txt