summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Gohad <tushar.gohad@intel.com>2015-12-10 04:32:00 -0700
committerTushar Gohad <tushar.gohad@intel.com>2015-12-10 04:32:00 -0700
commit43250c6f53451ed54f912261786e94595b0be9ae (patch)
tree06a77109dfc4adce2a196774347d990ff2a8ed3b
parent71f8aea4f7e7c11d40441cf7456cc2abdef201bb (diff)
downloadliberasurecode-43250c6f53451ed54f912261786e94595b0be9ae.tar.gz
Use absolute path for get_flags test program
... fixes issues with builds where configure is invoked from a directory other than the topdir
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3c029b2..ac9876f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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