make dovecot executables hardened
This commit is contained in:
parent
0b71efd9d6
commit
79296a82aa
@ -136,8 +136,9 @@ sed -i '/DEFAULT_INCLUDES *=/s|$| '"$(pkg-config --cflags libclucene-core)|" src
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
#required for fdpass.c line 125,190: dereferencing type-punned pointer will break strict-aliasing rules
|
#required for fdpass.c line 125,190: dereferencing type-punned pointer will break strict-aliasing rules
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
%global _hardened_build 1
|
||||||
export LDFLAGS="-Wl,-z,now -Wl,-z,relro"
|
export CFLAGS="%{__global_cflags} -fno-strict-aliasing"
|
||||||
|
export LDFLAGS="-Wl,-z,now -Wl,-z,relro %{__global_ldflags}"
|
||||||
autoreconf -I . -fiv #required for aarch64 support
|
autoreconf -I . -fiv #required for aarch64 support
|
||||||
%configure \
|
%configure \
|
||||||
INSTALL_DATA="install -c -p -m644" \
|
INSTALL_DATA="install -c -p -m644" \
|
||||||
|
Loading…
Reference in New Issue
Block a user