aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Justin Whear <justin.whear@gmail.com> 2023-02-28 23:35:04 -0800
committerGravatar GitHub <noreply@github.com> 2023-02-28 23:35:04 -0800
commit9a7333dd5e9d34d26aa94a771f7d3c142809f054 (patch)
treed3bdea8c0d84231065feeeccfa35cb21048b99fb
parent88b5cda1097779d5a9346ea989a5a29fd5462d95 (diff)
downloadbun-9a7333dd5e9d34d26aa94a771f7d3c142809f054.tar.gz
bun-9a7333dd5e9d34d26aa94a771f7d3c142809f054.tar.zst
bun-9a7333dd5e9d34d26aa94a771f7d3c142809f054.zip
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.
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b2f0b3b87..e194e9587 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