Skip to content

Commit

Permalink
Revert "build: 📦 improve cmake usage in build"
Browse files Browse the repository at this point in the history
This reverts commit a7d76aa.
  • Loading branch information
darvid committed Nov 18, 2023
1 parent a7d76aa commit cabc627
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,20 @@ WORKDIR /tmp/hyperscan
FROM build_pcre AS build_hyperscan
ARG build_type
ARG pcre_version
WORKDIR /tmp/hyperscan
RUN mkdir -p build
WORKDIR /tmp/hyperscan/build
ENV CFLAGS="-fPIC"
ENV CXXFLAGS="$CFLAGS -D_GLIBCXX_USE_CXX11_ABI=0"
RUN cmake \
-S . \
-B build \
-DCMAKE_INSTALL_PREFIX=/opt/hyperscan \
-DFAT_RUNTIME=ON \
-DBUILD_STATIC_AND_SHARED=ON \
-DCMAKE_BUILD_TYPE=${build_type} \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DPCRE_SOURCE=../pcre
RUN cmake --build build --parallel $(nproc)
RUN cmake --install build
-DPCRE_SOURCE=../pcre \
../
RUN make -j$(nproc) && make install

FROM base
LABEL maintainer="David Gidwani <[email protected]>"
Expand Down

0 comments on commit cabc627

Please sign in to comment.