From 9a7333dd5e9d34d26aa94a771f7d3c142809f054 Mon Sep 17 00:00:00 2001 From: Justin Whear Date: Tue, 28 Feb 2023 23:35:04 -0800 Subject: [PATCH] Forces a specific libdir for c-ares (#2241) The c-ares build expects lib/libcares.a to exist after cmake, but on my system it was being generated in lib64. This simply sets the cmake variable so that the target ends up where we expect. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b2f0b3b873f69..e194e95875073 100644 --- a/Makefile +++ b/Makefile @@ -569,7 +569,11 @@ c-ares: rm -rf $(BUN_DEPS_DIR)/c-ares/build && \ mkdir $(BUN_DEPS_DIR)/c-ares/build && \ cd $(BUN_DEPS_DIR)/c-ares/build && \ - cmake $(CMAKE_FLAGS) -DCMAKE_C_FLAGS="$(CFLAGS) -flto=full" -DCMAKE_BUILD_TYPE=Release -DCARES_STATIC=ON -DCARES_STATIC_PIC=ON -DCARES_SHARED=OFF -G "Ninja" .. && \ + cmake $(CMAKE_FLAGS) -DCMAKE_C_FLAGS="$(CFLAGS) -flto=full" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCARES_STATIC=ON -DCARES_STATIC_PIC=ON -DCARES_SHARED=OFF \ + -G "Ninja" .. && \ ninja && cp lib/libcares.a $(BUN_DEPS_OUT_DIR)/libcares.a .PHONY: prepare-types