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:
parent
f9a6cc2e73
commit
7d88ca700a
1 changed files with 2 additions and 2 deletions
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue