From 43250c6f53451ed54f912261786e94595b0be9ae Mon Sep 17 00:00:00 2001 From: Tushar Gohad Date: Thu, 10 Dec 2015 04:32:00 -0700 Subject: [PATCH] Use absolute path for get_flags test program ... fixes issues with builds where configure is invoked from a directory other than the topdir --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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