fix failure to use add-cfi scripts on asm when building out-of-tree
authorWesley Wiser <wesleywiser@microsoft.com>
Thu, 21 Oct 2021 16:09:30 +0000 (16:09 +0000)
committerRich Felker <dalias@aerifal.cx>
Fri, 7 Jan 2022 18:30:46 +0000 (13:30 -0500)
use $srcdir in configure test for add-cfi script.

configure

index e1aefed..ca5cbc0 100755 (executable)
--- a/configure
+++ b/configure
@@ -409,7 +409,7 @@ test "$debug" = yes && CFLAGS_AUTO=-g
 #
 printf "checking whether we should preprocess assembly to add debugging information... "
 if fnmatch '-g*|*\ -g*' "$CFLAGS_AUTO $CFLAGS" &&
-   test -f "tools/add-cfi.$ARCH.awk" &&
+   test -f "$srcdir/tools/add-cfi.$ARCH.awk" &&
    printf ".file 1 \"srcfile.s\"\n.line 1\n.cfi_startproc\n.cfi_endproc" | $CC -g -x assembler -c -o /dev/null 2>/dev/null -
 then
   ADD_CFI=yes