Skip to content

Commit

Permalink
dev-lang/gnat-gpl: backport libgomp -Werror fix to 2017
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
Sergei Trofimovich committed Jun 21, 2020
1 parent ef8efc7 commit 814c45a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dev-lang/gnat-gpl/files/gnat-gpl-2017-libgomp-Werror.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
libgomp does not respect --disable-werror

https://bugs.gentoo.org/229059
http://gcc.gnu.org/PR38436
--- a/libgomp/configure.ac
+++ b/libgomp/configure.ac
@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
# Add -Wall -Werror if we are using GCC.
if test "x$GCC" = "xyes"; then
- XCFLAGS="$XCFLAGS -Wall -Werror"
+ XCFLAGS="$XCFLAGS -Wall"
fi
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
# Add -Wall -Werror if we are using GCC.
if test "x$GCC" = "xyes"; then
- XCFLAGS="$XCFLAGS -Wall -Werror"
+ XCFLAGS="$XCFLAGS -Wall"
fi
1 change: 1 addition & 0 deletions dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ src_prepare() {
eapply "${FILESDIR}/${P}-ustat.patch"

toolchain_src_prepare
eapply "${FILESDIR}"/${P}-libgomp-Werror.patch
}

src_configure() {
Expand Down

0 comments on commit 814c45a

Please sign in to comment.