Unbreak build on OpenBSD by not adding -Wl,-z,defs to linker flags.
authorYaron Keren <yaron.keren@gmail.com>
Sat, 21 Nov 2015 06:33:54 +0000 (06:33 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sat, 21 Nov 2015 06:33:54 +0000 (06:33 +0000)
commit035867390874de412345fce6948219f2b780d796
treed6d21bc89562caad3bec3c02128fa4f10f837244
parent0bf5b5cfb8a23b91c13c30b0e912dbc07cd84c58
Unbreak build on OpenBSD by not adding -Wl,-z,defs to linker flags.
This is similar to the fix for FreeBSD in r226862. Without this patch,
the build aborts when linkling libLTO.so, complaining about undefined
references to assert2, cxa_atexit, etc.

Patch by Stefan Kempf!

http://reviews.llvm.org/D14236

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253769 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake