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" \