From 105bdc8c28cb61eca4daabd7b89ffef7d3dfebee Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Sat, 23 Mar 2024 08:13:49 -0700 Subject: [PATCH] [manylinux] Build fmt with -fPIC --- docker/dev/v6.14/Dockerfile.manylinux_2_28_aarch64-min | 6 +++++- docker/dev/v6.14/Dockerfile.manylinux_2_28_ppc64le-min | 6 +++++- docker/dev/v6.14/Dockerfile.manylinux_2_28_s390x-min | 6 +++++- docker/dev/v6.14/Dockerfile.manylinux_2_28_x86_64 | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/docker/dev/v6.14/Dockerfile.manylinux_2_28_aarch64-min b/docker/dev/v6.14/Dockerfile.manylinux_2_28_aarch64-min index 095c349d3d358..467a0247d9da9 100644 --- a/docker/dev/v6.14/Dockerfile.manylinux_2_28_aarch64-min +++ b/docker/dev/v6.14/Dockerfile.manylinux_2_28_aarch64-min @@ -16,7 +16,11 @@ RUN yum install -y \ # fmt RUN git clone https://github.com/fmtlib/fmt.git -b 10.2.1 \ && mkdir -p fmt/build \ - && cmake fmt -B fmt/build -DCMAKE_BUILD_TYPE=Release -DFMT_TEST=OFF \ + && cmake fmt -B fmt/build \ + -DCMAKE_BUILD_TYPE=Release \ + -DFMT_TEST=OFF \ + -DCMAKE_C_FLAGS="-fPIC" \ + -DCMAKE_CXX_FLAGS="-fPIC" \ && cmake --build fmt/build --target install -j${NUM_CORES} \ && rm -rf fmt diff --git a/docker/dev/v6.14/Dockerfile.manylinux_2_28_ppc64le-min b/docker/dev/v6.14/Dockerfile.manylinux_2_28_ppc64le-min index 69f68db36d732..4ac8a701b7842 100644 --- a/docker/dev/v6.14/Dockerfile.manylinux_2_28_ppc64le-min +++ b/docker/dev/v6.14/Dockerfile.manylinux_2_28_ppc64le-min @@ -13,7 +13,11 @@ RUN yum install -y glew-devel boost-devel python3-devel # fmt RUN git clone https://github.com/fmtlib/fmt.git -b 10.2.1 \ && mkdir -p fmt/build \ - && cmake fmt -B fmt/build -DCMAKE_BUILD_TYPE=Release -DFMT_TEST=OFF \ + && cmake fmt -B fmt/build \ + -DCMAKE_BUILD_TYPE=Release \ + -DFMT_TEST=OFF \ + -DCMAKE_C_FLAGS="-fPIC" \ + -DCMAKE_CXX_FLAGS="-fPIC" \ && cmake --build fmt/build --target install -j${NUM_CORES} \ && rm -rf fmt diff --git a/docker/dev/v6.14/Dockerfile.manylinux_2_28_s390x-min b/docker/dev/v6.14/Dockerfile.manylinux_2_28_s390x-min index f4e6b8e096c1a..ac5c7dc673c73 100644 --- a/docker/dev/v6.14/Dockerfile.manylinux_2_28_s390x-min +++ b/docker/dev/v6.14/Dockerfile.manylinux_2_28_s390x-min @@ -13,7 +13,11 @@ RUN yum install -y glew-devel boost-devel python3-devel # fmt RUN git clone https://github.com/fmtlib/fmt.git -b 10.2.1 \ && mkdir -p fmt/build \ - && cmake fmt -B fmt/build -DCMAKE_BUILD_TYPE=Release -DFMT_TEST=OFF \ + && cmake fmt -B fmt/build \ + -DCMAKE_BUILD_TYPE=Release \ + -DFMT_TEST=OFF \ + -DCMAKE_C_FLAGS="-fPIC" \ + -DCMAKE_CXX_FLAGS="-fPIC" \ && cmake --build fmt/build --target install -j${NUM_CORES} \ && rm -rf fmt diff --git a/docker/dev/v6.14/Dockerfile.manylinux_2_28_x86_64 b/docker/dev/v6.14/Dockerfile.manylinux_2_28_x86_64 index 39b9b93c8c784..c586f27f1c6af 100644 --- a/docker/dev/v6.14/Dockerfile.manylinux_2_28_x86_64 +++ b/docker/dev/v6.14/Dockerfile.manylinux_2_28_x86_64 @@ -17,7 +17,11 @@ RUN yum install -y \ # fmt RUN git clone https://github.com/fmtlib/fmt.git -b 10.2.1 \ && mkdir -p fmt/build \ - && cmake fmt -B fmt/build -DCMAKE_BUILD_TYPE=Release -DFMT_TEST=OFF \ + && cmake fmt -B fmt/build \ + -DCMAKE_BUILD_TYPE=Release \ + -DFMT_TEST=OFF \ + -DCMAKE_C_FLAGS="-fPIC" \ + -DCMAKE_CXX_FLAGS="-fPIC" \ && cmake --build fmt/build --target install -j${NUM_CORES} \ && rm -rf fmt