From d21405df573e41ee464a3f2201c5476a1fa95a44 Mon Sep 17 00:00:00 2001 From: stickz Date: Sun, 15 Dec 2024 21:21:35 -0500 Subject: [PATCH] cURL: Properly build with LTO This commit fixes a typo in the cmake command for curl, that was causing it not to properly build with LTO enabled. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 44dfc12..37ce748 100644 --- a/Dockerfile +++ b/Dockerfile @@ -123,7 +123,7 @@ RUN tree ${DIST_PATH} WORKDIR /usr/local/src/curl COPY --from=src-curl /src . -RUN cmake . -D ENABLE_ARES=ON CURL_LTO=ON -D CURL_USE_OPENSSL=ON -D CURL_BROTLI=ON -D CURL_ZSTD=ON -D BUILD_SHARED_LIBS=ON -D CMAKE_BUILD_TYPE:STRING="Release" -D CMAKE_C_FLAGS_RELEASE:STRING="-O3 -flto=\"$(nproc)\" -pipe" +RUN cmake . -D ENABLE_ARES=ON -D CURL_LTO=ON -D CURL_USE_OPENSSL=ON -D CURL_BROTLI=ON -D CURL_ZSTD=ON -D BUILD_SHARED_LIBS=ON -D CMAKE_BUILD_TYPE:STRING="Release" -D CMAKE_C_FLAGS_RELEASE:STRING="-O3 -flto=\"$(nproc)\" -pipe" RUN cmake --build . --clean-first --parallel $(nproc) RUN make install -j$(nproc) RUN make DESTDIR=${DIST_PATH} install -j$(nproc)