From 2c9ad7ea29d1d14668577d29f3bd040575aa0f0e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 31 Aug 2020 10:52:56 +0930 Subject: [PATCH] external/Makefile: fix mkdir rule for libbacktrace.a The $(TARGET_DIR) may not exist: use mkdir -p. Signed-off-by: Rusty Russell --- external/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/Makefile b/external/Makefile index 9c3c27b5d..f54dc749b 100644 --- a/external/Makefile +++ b/external/Makefile @@ -89,7 +89,7 @@ $(TARGET_DIR)/libjsmn.a: $(TARGET_DIR)/jsmn-build/jsmn.o # Need separate build dir: changes inside submodule make git think it's dirty. $(TARGET_DIR)/libbacktrace.a: external/libbacktrace/backtrace.h - @mkdir $(TARGET_DIR)/libbacktrace-build 2>/dev/null || true + mkdir -p $(TARGET_DIR)/libbacktrace-build cd $(TARGET_DIR)/libbacktrace-build && $(TOP)/libbacktrace/configure CC="$(CC)" --enable-static=yes $(CROSSCOMPILE_OPTS) --enable-shared=no --prefix=/ --libdir=/ && $(MAKE) $(MAKE) -C $(TARGET_DIR)/libbacktrace-build DESTDIR=$$(pwd)/$(TARGET_DIR) install-exec