summaryrefslogtreecommitdiff
blob: 08410fa0cd9b9e40c9ecad5b88186dd0a7a6db4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
On hardened 'cp' drops out XT-pax parking.
perfinion suggested using 'install', where portage
might have a chance to save our marking.

Reported-by: Jay Yang
Gentoo-bug: https://bugs.gentoo.org/518734
diff --git a/rules/build-prog.mk b/rules/build-prog.mk
index 399369e..2ee9cd5 100644
--- a/rules/build-prog.mk
+++ b/rules/build-prog.mk
@@ -288,3 +288,3 @@ endif
 $$($1_$2_INPLACE) : $1/$2/build/tmp/$$($1_$2_PROG_INPLACE) | $$$$(dir $$$$@)/.
-	"$$(CP)" -p $$< $$@
+	$$(INSTALL) -m 755 $$< $$@