From 7d88ca700affde8e748050421b9f5538799c7894 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 8 Jan 2019 15:34:51 +0100 Subject: [PATCH] Add PIC/PIE flags to bzip2 package Signed-off-by: David Oberhollenzer --- pkg/bzip2/build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/bzip2/build b/pkg/bzip2/build index 8fa9713..1ec21b3 100755 --- a/pkg/bzip2/build +++ b/pkg/bzip2/build @@ -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" \