1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-12-23 23:50:51 +01:00

Add PIC/PIE flags to bzip2 package

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2019-01-08 15:34:51 +01:00
parent f9a6cc2e73
commit 7d88ca700a

View file

@ -16,8 +16,8 @@ build() {
local ldflags=""
if [ "x$TC_HARDENING" = "xyes" ]; then
cflags="$cflags -fstack-protector-all"
ldflags="$ldflags -z noexecstack -z relro -z now"
cflags="$cflags -fstack-protector-all -fPIE -fPIC"
ldflags="$ldflags -z noexecstack -z relro -z now -fPIE -fPIC"
fi
make CFLAGS="-Wall -Winline -O2 -D_FILE_OFFSET_BITS=64 $cflags" \