mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 12:22:20 +08:00
Since gdb distributions must be sanitized, and it is easy to forget to
run Sanitize during the build process, cause the distribution build process to emit a appropriate message and quit when run in an unsanitized tree.
This commit is contained in:
11
.Sanitize
11
.Sanitize
@ -119,6 +119,17 @@ else
|
|||||||
verbose=
|
verbose=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove "sanitize-Sanitize" lines.
|
||||||
|
if [ -n "${verbose}" ] ; then
|
||||||
|
echo Cleaning unconditional sanitizations out of Makefile.in...
|
||||||
|
fi
|
||||||
|
cp Makefile.in new
|
||||||
|
sed '/start\-sanitize\-Sanitize/,/end-\sanitize\-Sanitize/d' < Makefile.in > new
|
||||||
|
if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then
|
||||||
|
mv Makefile.in .Recover
|
||||||
|
fi
|
||||||
|
mv new Makefile.in
|
||||||
|
|
||||||
if [ -n "${verbose}" ] ; then
|
if [ -n "${verbose}" ] ; then
|
||||||
echo Looking for signs of \"v9\"...
|
echo Looking for signs of \"v9\"...
|
||||||
fi
|
fi
|
||||||
|
@ -974,6 +974,9 @@ GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
|
|||||||
|
|
||||||
.PHONY: setup-dirs-gdb gdb.tar.gz make-gdb.tar.gz
|
.PHONY: setup-dirs-gdb gdb.tar.gz make-gdb.tar.gz
|
||||||
setup-dirs-gdb:
|
setup-dirs-gdb:
|
||||||
|
$(start-sanitize-Sanitize)
|
||||||
|
@if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ;
|
||||||
|
$(end-sanitize-Sanitize)
|
||||||
./configure sun4
|
./configure sun4
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
./configure -rm sun4
|
./configure -rm sun4
|
||||||
|
Reference in New Issue
Block a user