From 94757d9e8c3083cc2ef9d50250d795372964e548 Mon Sep 17 00:00:00 2001 From: Mark Zhuang Date: Fri, 19 Jul 2024 16:04:12 +0800 Subject: musl: support build gdb --- Makefile.in | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Makefile.in b/Makefile.in index e8a6f44..f9c55be 100644 --- a/Makefile.in +++ b/Makefile.in @@ -141,6 +141,7 @@ endif ifeq (@enable_gdb@,--enable-gdb) newlib: stamps/build-gdb-newlib linux: stamps/build-gdb-linux +musl: stamps/build-gdb-musl endif linux-native: stamps/build-gcc-linux-native ifeq (@enable_llvm@,--enable-llvm) @@ -794,6 +795,30 @@ stamps/build-binutils-musl: $(BINUTILS_SRCDIR) $(BINUTILS_SRC_GIT) $(PREPARATION $(MAKE) -C $(notdir $@) install mkdir -p $(dir $@) && touch $@ +stamps/build-gdb-musl: $(GDB_SRCDIR) $(GDB_SRC_GIT) $(PREPARATION_STAMP) + rm -rf $@ $(notdir $@) + mkdir $(notdir $@) +# CC_FOR_TARGET is required for the ld testsuite. + cd $(notdir $@) && CC_FOR_TARGET=$(MUSL_CC_FOR_TARGET) $