]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdbsupport: Fix config.status dependency
authorTsukasa OI <research_trasio@irq.a4lg.com>
Thu, 8 Sep 2022 02:54:15 +0000 (02:54 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Thu, 8 Sep 2022 11:03:12 +0000 (11:03 +0000)
Commit 171fba11ab27 ("Make GDBserver abort on internal error in development mode")
created a new substitution CONFIG_STATUS_DEPENDENCIES but this is used by
Makefile.in (which is not regenerated by that commit).  After regenerating
it, it is found that CONFIG_STATUS_DEPENDENCIES value is not valid, making
gdbsupport fail to build.

Since the CONFIG_STATUS_DEPENDENCIES value is used in the Makefile, macro
substitution must have a Makefile format but commit 171fba11ab27 used shell
format "$srcdir/../bfd/development.sh".

This commit fixes this issue by substituting "$srcdir" (shell format) to
"$(srcdir)" (Makefile format).  It preserves the dependency as Pedro
intended and fixes the build problem.

It also regenerates corresponding files with the maintainer mode.

gdbsupport/ChangeLog:

* configure.ac: Fix config.status dependency.
* Makefile.in: Regenerate.
* configure: Regenerate.

gdbsupport/Makefile.in
gdbsupport/configure
gdbsupport/configure.ac

index bdceff3b56af632634ec64037de183bc1db2a48f..6aadae4103161f47922a8b1b092684f50615ead1 100644 (file)
@@ -233,6 +233,7 @@ CATOBJEXT = @CATOBJEXT@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
+CONFIG_STATUS_DEPENDENCIES = @CONFIG_STATUS_DEPENDENCIES@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
 CXX = @CXX@
index 0b48521deb6f323956d3a7773c5c830e8c7ddb30..1b0752609e5cac1ee8fc9e26310b85f00d8f137d 100755 (executable)
@@ -10470,7 +10470,7 @@ $as_echo "#define USE_WIN32API 1" >>confdefs.h
     ;;
 esac
 
-CONFIG_STATUS_DEPENDENCIES='$srcdir/../bfd/development.sh'
+CONFIG_STATUS_DEPENDENCIES='$(srcdir)/../bfd/development.sh'
 
 
 ac_config_files="$ac_config_files Makefile"
index ac2ade6a220973460cd63d1ca197748115c2c6cb..3b461bc82ded2c2c6d5a246409c4be689eb273db 100644 (file)
@@ -81,7 +81,7 @@ case ${host} in
     ;;
 esac
 
-AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$srcdir/../bfd/development.sh'])
+AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(srcdir)/../bfd/development.sh'])
 
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT