From aa44a42654c9f4175922410a307645d1addaa630 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Wed, 16 Nov 2022 12:33:05 +0100 Subject: [PATCH] ensure we compile the wheels with bells and whistles too --- core/base/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/base/Dockerfile b/core/base/Dockerfile index bded67e0..bfc8cbc9 100644 --- a/core/base/Dockerfile +++ b/core/base/Dockerfile @@ -42,6 +42,10 @@ RUN set -euxo pipefail \ ; rm -f /tmp/*.pem ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" +ENV CXXFLAGS="-g -O2 -fdebug-prefix-map=/app=. -fstack-protector-strong -Wformat -Werror=format-security" +ENV CFLAGS="-g -O2 -fdebug-prefix-map=/app=. -fstack-protector-strong -Wformat -Werror=format-security" +ENV CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" +ENV LDFLAGS="-Wl,-z,relro" COPY requirements-${MAILU_DEPS}.txt ./ COPY libs/ libs/