From 05a02c53a06043f6138a910adf073723a3f066d3 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Sun, 6 Mar 2016 00:14:55 +0100 Subject: [PATCH] cc-wrapper: -pie is a ldflag --- pkgs/build-support/cc-wrapper/add-hardening | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/cc-wrapper/add-hardening b/pkgs/build-support/cc-wrapper/add-hardening index 08fdd52be08a..f211d11ab3ed 100644 --- a/pkgs/build-support/cc-wrapper/add-hardening +++ b/pkgs/build-support/cc-wrapper/add-hardening @@ -15,7 +15,8 @@ if [[ ! $hardeningDisable == "all" ]]; then hardeningCFlags+=('-fstack-protector-strong') ;; pie) - hardeningCFlags+=('-fPIE' '-pie') + hardeningCFlags+=('-fPIE') + hardeningLDFlags+=('-pie') ;; pic) hardeningCFlags+=('-fPIC')