Skip to content

Commit

Permalink
games-rpg/openglad: fix build with clang
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/830571
Signed-off-by: Ionen Wolkens <[email protected]>
  • Loading branch information
ionenwks committed Jan 4, 2022
1 parent 36d52f1 commit a9feb24
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions games-rpg/openglad/files/openglad-0.98_p20200907-clang.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Option gets used for C as well leading to gcc warnings and a hard
error with clang. Option isn't actually needed, so just remove it.

https://bugs.gentoo.org/830571
--- a/premake4.lua
+++ b/premake4.lua
@@ -47,3 +47,2 @@
defines { "PHYSFS_SUPPORTS_ZIP" }
- buildoptions { "-std=gnu++0x" }

6 changes: 5 additions & 1 deletion games-rpg/openglad/openglad-0.98_p20200907.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
Expand Down Expand Up @@ -29,6 +29,10 @@ BDEPEND="
dev-util/premake:5
virtual/pkgconfig"

PATCHES=(
"${FILESDIR}"/${P}-clang.patch
)

src_prepare() {
default

Expand Down

0 comments on commit a9feb24

Please sign in to comment.