mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-action/polymc: remove some troublesome compile flags
Remove -Werror and -D_FORTIFY_SOURCE from the upstream CMakeLists, to prevent breakage with user-defined flags. Closes: https://bugs.gentoo.org/848765 Signed-off-by: Thiago Donato Ferreira <flowlnlnln@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/25713 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
03af65f444
commit
69101d81e5
@@ -79,6 +79,10 @@ RDEPEND="
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# Prevent conflicting with the user's flags
|
||||
# See https://bugs.gentoo.org/848765 for more info
|
||||
sed -i -e 's/-Werror//' -e 's/-D_FORTIFY_SOURCE=2//' CMakeLists.txt || die 'Failed to remove -Werror and -D_FORTIFY_SOURCE via sed'
|
||||
}
|
||||
|
||||
src_configure(){
|
||||
|
||||
@@ -79,6 +79,10 @@ RDEPEND="
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# Prevent conflicting with the user's flags
|
||||
# See https://bugs.gentoo.org/848765 for more info
|
||||
sed -i -e 's/-Werror//' -e 's/-D_FORTIFY_SOURCE=2//' CMakeLists.txt || die 'Failed to remove -Werror and -D_FORTIFY_SOURCE via sed'
|
||||
}
|
||||
|
||||
src_configure(){
|
||||
|
||||
@@ -79,6 +79,10 @@ RDEPEND="
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# Prevent conflicting with the user's flags
|
||||
# See https://bugs.gentoo.org/848765 for more info
|
||||
sed -i -e 's/-Werror//' -e 's/-D_FORTIFY_SOURCE=2//' CMakeLists.txt || die 'Failed to remove -Werror and -D_FORTIFY_SOURCE via sed'
|
||||
}
|
||||
|
||||
src_configure(){
|
||||
|
||||
Reference in New Issue
Block a user