Skip to content

Commit

Permalink
build: 📦 set -march to core2 on musllinux_1_1
Browse files Browse the repository at this point in the history
  • Loading branch information
darvid committed Nov 27, 2023
1 parent 5d811a1 commit a23a72d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ ARG pcre_version
RUN mkdir -p build
WORKDIR /tmp/hyperscan/build
ENV CFLAGS="-fPIC"
ENV CXXFLAGS="$CFLAGS -D_GLIBCXX_USE_CXX11_ABI=0"
RUN cmake \
RUN [[ "$POLICY" == 'musllinux_1_1' ]] && \
export CFLAGS="$CFLAGS -march=core2"; \
export CXXFLAGS="$CFLAGS -D_GLIBCXX_USE_CXX11_ABI=0"; \
cmake \
-DCMAKE_INSTALL_PREFIX=/opt/hyperscan \
-DFAT_RUNTIME=ON \
-DBUILD_STATIC_AND_SHARED=ON \
-DCMAKE_BUILD_TYPE=${build_type} \
-DCMAKE_C_FLAGS="${CFLAGS}" \
Expand Down

0 comments on commit a23a72d

Please sign in to comment.