Skip to content

Commit

Permalink
[manylinux] Build fmt with -fPIC
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Mar 25, 2024
1 parent 2728b2a commit 105bdc8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion docker/dev/v6.14/Dockerfile.manylinux_2_28_aarch64-min
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion docker/dev/v6.14/Dockerfile.manylinux_2_28_ppc64le-min
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion docker/dev/v6.14/Dockerfile.manylinux_2_28_s390x-min
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion docker/dev/v6.14/Dockerfile.manylinux_2_28_x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 105bdc8

Please sign in to comment.