commit:     c2570a1964197ee65489c98b265390f25d492ecf
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 10 11:24:44 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Oct 10 11:25:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2570a19

media-gfx/wings: Set CC, fix CFLAGS

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Closes: https://bugs.gentoo.org/show_bug.cgi?id=747481
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 media-gfx/wings/wings-2.2.6.1.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/media-gfx/wings/wings-2.2.6.1.ebuild 
b/media-gfx/wings/wings-2.2.6.1.ebuild
index b6561579ab6..d030dc78202 100644
--- a/media-gfx/wings/wings-2.2.6.1.ebuild
+++ b/media-gfx/wings/wings-2.2.6.1.ebuild
@@ -2,6 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+inherit toolchain-funcs
 
 DESCRIPTION="Wings 3D is an advanced subdivision modeler"
 HOMEPAGE="http://www.wings3d.com/";
@@ -22,8 +23,14 @@ DEPEND="
        ${RDEPEND}
 "
 
+src_prepare() {
+       sed -i -e 's# -Werror##g;s# -O3##g' $(find -name Makefile) || die
+       default
+}
+
 src_compile() {
        export ERL_PATH="/usr/$(get_libdir)/erlang/lib/"
+       tc-export CC
        # Work around parallel make issues
        # Set ER_LIBS to the top source directory
        emake vsn.mk

Reply via email to