[CMake] Move dladdr check below _GNU_SOURCE check.
authorDaniel Thornburgh <dthorn@google.com>
Wed, 7 Dec 2022 00:22:24 +0000 (16:22 -0800)
committerDaniel Thornburgh <dthorn@google.com>
Thu, 8 Dec 2022 23:53:25 +0000 (15:53 -0800)
commit138d53895734504cc4780268114c4b880aee1719
tree15f6e53d6c47d5ed7c031a1e53795a3499f47432
parent500e72924305c4a1fac2ffd45b16114d49c3a7d2
[CMake] Move dladdr check below _GNU_SOURCE check.

The presence of dladdr on Linux depends on whether or not _GNU_SOURCE is
set.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D139575
llvm/cmake/config-ix.cmake