mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-libs/dietlibc: use tc-enables-pie instead of gcc-specs-pie
Package-Manager: Portage-2.3.6, Repoman-2.3.2
This commit is contained in:
parent
b07e573f40
commit
50369f6275
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="3"
|
||||
@ -41,7 +41,7 @@ pkg_setup() {
|
||||
-Wno-unused -Wredundant-decls -fno-strict-aliasing
|
||||
|
||||
# only use -nopie on archs that support it
|
||||
gcc-specs-pie && append-flags -nopie
|
||||
tc-enables-pie && append-flags -nopie
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
||||
@ -36,7 +36,7 @@ src_prepare() {
|
||||
append-flags $(test-flags -fno-stack-protector)
|
||||
|
||||
# only use -nopie on archs that support it
|
||||
gcc-specs-pie && append-flags -nopie
|
||||
tc-enables-pie && append-flags -nopie
|
||||
|
||||
sed -i -e 's:strip::' Makefile || die
|
||||
append-flags -Wa,--noexecstack
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user