Files
rk35xx-android14/external/libabigail/docker/Dockerfile.test
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

29 lines
1.1 KiB
Docker

FROM ghcr.io/woodard/libabigail-fedora-base
# docker build -f docker/Dockerfile.test -t test .
RUN dnf install -y \
file \
diffutils \
lbzip2 \
elfutils-libs
WORKDIR /code
COPY . /code
RUN mkdir -p build && \
autoreconf -i && \
cd build && \
CXXFLAGS="-g3 -fvar-tracking-assignments \
-gstatement-frontiers -gvariable-location-views -grecord-gcc-switches -pipe -Wall \
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wp,-D_GLIBCXX_ASSERTIONS \
-fstack-protector-strong -fstack-clash-protection -fcf-protection \
-fasynchronous-unwind-tables -O2" CFLAGS="-g3 -fvar-tracking-assignments \
-gstatement-frontiers -gvariable-location-views -grecord-gcc-switches -pipe -Wall \
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wp,-D_GLIBCXX_ASSERTIONS \
-fstack-protector-strong -fstack-clash-protection -fcf-protection \
-fasynchronous-unwind-tables -O2" LDFLAGS="-Wl,--no-undefined" \
../configure --prefix=/opt/libabigail --enable-rpm=yes && \
make -j4 && \
make check ENABLE_SLOW_TEST=yes || (cat tests/test-suite.log && exit 1)