mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
sys-boot/lilo: remove legacy HARDENED_CFLAGS, bug #621866
Package-Manager: Portage-2.3.13, Repoman-2.3.3
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs
|
||||
@@ -48,16 +48,12 @@ src_compile() {
|
||||
# lilo needs this. bug #140209
|
||||
export LC_ALL=C
|
||||
|
||||
# hardened automatic PIC plus PIE building should be suppressed
|
||||
# because of assembler instructions that cannot be compiled PIC
|
||||
HARDENED_CFLAGS="`test-flags-CC -fno-pic -nopie`"
|
||||
|
||||
# we explicitly prevent the custom CFLAGS for stability reasons
|
||||
if use static; then
|
||||
emake CC="$(tc-getCC) ${HARDENED_CFLAGS}" lilo.static || die
|
||||
emake CC="$(tc-getCC)" lilo.static || die
|
||||
mv lilo.static lilo || die
|
||||
else
|
||||
emake CC="$(tc-getCC) ${HARDENED_CFLAGS}" lilo || die
|
||||
emake CC="$(tc-getCC)" lilo || die
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="2"
|
||||
@@ -49,10 +49,6 @@ src_compile() {
|
||||
# lilo needs this. bug #140209
|
||||
export LC_ALL=C
|
||||
|
||||
# hardened automatic PIC plus PIE building should be suppressed
|
||||
# because of assembler instructions that cannot be compiled PIC
|
||||
HARDENED_CFLAGS=$(test-flags-CC -fno-pic -nopie)
|
||||
|
||||
# we explicitly prevent the custom CFLAGS for stability reasons
|
||||
if use static; then
|
||||
local target=alles
|
||||
@@ -60,7 +56,7 @@ src_compile() {
|
||||
local target=all
|
||||
fi
|
||||
|
||||
emake CC="$(tc-getCC) ${LDFLAGS} ${HARDENED_CFLAGS}" ${target} || die
|
||||
emake CC="$(tc-getCC) ${LDFLAGS}" ${target} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
@@ -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="5"
|
||||
@@ -49,10 +49,6 @@ src_compile() {
|
||||
# lilo needs this. bug #140209
|
||||
export LC_ALL=C
|
||||
|
||||
# hardened automatic PIC plus PIE building should be suppressed
|
||||
# because of assembler instructions that cannot be compiled PIC
|
||||
HARDENED_CFLAGS=$(test-flags-CC -fno-pic -nopie)
|
||||
|
||||
# we explicitly prevent the custom CFLAGS for stability reasons
|
||||
if use static; then
|
||||
local target=alles
|
||||
@@ -60,7 +56,7 @@ src_compile() {
|
||||
local target=all
|
||||
fi
|
||||
|
||||
emake CC="$(tc-getCC) ${LDFLAGS} ${HARDENED_CFLAGS}" ${target} || die
|
||||
emake CC="$(tc-getCC) ${LDFLAGS}" ${target} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
@@ -49,10 +49,6 @@ src_compile() {
|
||||
# lilo needs this. bug #140209
|
||||
export LC_ALL=C
|
||||
|
||||
# hardened automatic PIC plus PIE building should be suppressed
|
||||
# because of assembler instructions that cannot be compiled PIC
|
||||
HARDENED_CFLAGS=$(test-flags-CC -fno-pic -nopie)
|
||||
|
||||
# we explicitly prevent the custom CFLAGS for stability reasons
|
||||
if use static; then
|
||||
local target=alles
|
||||
@@ -60,7 +56,7 @@ src_compile() {
|
||||
local target=all
|
||||
fi
|
||||
|
||||
emake CC="$(tc-getCC) ${LDFLAGS} ${HARDENED_CFLAGS}" ${target} || die
|
||||
emake CC="$(tc-getCC) ${LDFLAGS}" ${target} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
@@ -49,10 +49,6 @@ src_compile() {
|
||||
# lilo needs this. bug #140209
|
||||
export LC_ALL=C
|
||||
|
||||
# hardened automatic PIC plus PIE building should be suppressed
|
||||
# because of assembler instructions that cannot be compiled PIC
|
||||
HARDENED_CFLAGS=$(test-flags-CC -fno-pic -nopie)
|
||||
|
||||
# we explicitly prevent the custom CFLAGS for stability reasons
|
||||
if use static; then
|
||||
local target=alles
|
||||
@@ -60,7 +56,7 @@ src_compile() {
|
||||
local target=all
|
||||
fi
|
||||
|
||||
emake CC="$(tc-getCC) ${LDFLAGS} ${HARDENED_CFLAGS}" ${target} || die
|
||||
emake CC="$(tc-getCC) ${LDFLAGS}" ${target} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
Reference in New Issue
Block a user