Use absolute path for get_flags test program

... fixes issues with builds where configure is
invoked from a directory other than the topdir
This commit is contained in:
Tushar Gohad 2015-12-10 04:32:00 -07:00
parent 71f8aea4f7
commit 43250c6f53
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ fi
# Detect the SIMD features supported by both the compiler and the CPU
SIMD_FLAGS=""
cat get_flags_from_cpuid.c | sed "s/FLAGSFROMAUTOCONF/${SUPPORTED_FLAGS}/" | $CC -x c -g - -o get_flags_from_cpuid
cat "$srcdir/get_flags_from_cpuid.c" | sed "s/FLAGSFROMAUTOCONF/${SUPPORTED_FLAGS}/" | $CC -x c -g - -o get_flags_from_cpuid
if [[ -e ./get_flags_from_cpuid ]]; then
chmod 755 get_flags_from_cpuid; ./get_flags_from_cpuid; rm ./get_flags_from_cpuid
if [[ -e compiler_flags ]]; then