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:
Thiago Donato Ferreira
2022-05-31 20:47:02 -03:00
committed by Sam James
parent 03af65f444
commit 69101d81e5
3 changed files with 12 additions and 0 deletions

View File

@@ -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(){

View File

@@ -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(){

View File

@@ -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(){