Commit 96890c00 authored by Diego Biurrun's avatar Diego Biurrun Committed by Michael Niedermayer

configure: Change the rdtsc check to a linker check

A compile-only test could succeed with an implicit function declaration.
Also move the check to the x86 section; rdtsc is x86-only.
parent 84d902fb
......@@ -2948,8 +2948,6 @@ check_cc <<EOF && enable inline_asm
void foo(void) { __asm__ volatile ("" ::); }
EOF
check_code cc intrin.h "__rdtsc()" && enable rdtsc
_restrict=
for restrict_keyword in restrict __restrict__ __restrict; do
check_cc <<EOF && _restrict=$restrict_keyword && break
......@@ -3057,6 +3055,8 @@ elif enabled sparc; then
elif enabled x86; then
check_code ld intrin.h "__rdtsc()" "cc" && enable rdtsc
enable local_aligned_8 local_aligned_16
# check whether EBP is available on x86
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment