diff options
author | 2023-02-28 23:35:04 -0800 | |
---|---|---|
committer | 2023-02-28 23:35:04 -0800 | |
commit | 9a7333dd5e9d34d26aa94a771f7d3c142809f054 (patch) | |
tree | d3bdea8c0d84231065feeeccfa35cb21048b99fb | |
parent | 88b5cda1097779d5a9346ea989a5a29fd5462d95 (diff) | |
download | bun-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.
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |