summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/DAGISelMatcher.cpp
diff options
context:
space:
mode:
authorTodd Fiala <tfiala@google.com>2014-02-05 05:04:36 +0000
committerTodd Fiala <tfiala@google.com>2014-02-05 05:04:36 +0000
commit4ccfe392ed2cbe1670ed33819ea57efe42b9c3ba (patch)
tree0d3b04fa9d22d1fb287b7a84b4ab8e5ed41843e7 /llvm/utils/TableGen/DAGISelMatcher.cpp
parent02eac9a27042dedcf3ff96c984aaee7a0094e5ff (diff)
downloadbcm5719-llvm-4ccfe392ed2cbe1670ed33819ea57efe42b9c3ba.tar.gz
bcm5719-llvm-4ccfe392ed2cbe1670ed33819ea57efe42b9c3ba.zip
Fix configure to find arc4random via header files.
ISSUE: On Ubuntu 12.04 LTS, arc4random is provided by libbsd.so, which is a transitive dependency of libedit. If a system had libedit on it that was implemented in terms of libbsd.so, then the arc4random test, previously implemented as a linker test, would succeed with -ledit. However, on Ubuntu this would also require a #include <bsd/stdlib.h>. This caused a build breakage on configure-based Ubuntu 12.04 with libedit installed. FIX: This fix changes configure to test for arc4random by searching for it in the standard header files. On Ubuntu 12.04, this test now properly fails to find arc4random as it is not defined in the default header locations. It also tweaks the #define names to match the output of the header check command, which is slightly different than the linker function check #defines. I tested the following scenarios: (1) Ubuntu 12.04 without the libedit package [did not find arc4random, as expected] (2) Ubuntu 12.04 with libedit package [properly did not find arc4random, as expected] (3) Ubuntu 12.04 with most recent libedit, custom built, and not dependent on libbsd.so [properly did not find arc4random, as expected]. (4) FreeBSD 10.0B1 [properly found arc4random, as expected] llvm-svn: 200819
Diffstat (limited to 'llvm/utils/TableGen/DAGISelMatcher.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud