dev-scheme/gauche-gl: respect CFLAGS

Closes: https://bugs.gentoo.org/738818
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
Akinori Hattori
2021-10-04 22:35:03 +09:00
parent 47848d3088
commit 3a1fe8b046
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -17,7 +17,7 @@
# These are set by configure
# NB: cc and various flags must match the ones used to compile Gauche,
# so the make invocator shouldn't casually override them.
-CFLAGS = @DEFS@ @X_CFLAGS@ @GLUT_INCDIR@ @GLEW_INCDIR@
+CFLAGS = @DEFS@ @CFLAGS@ @X_CFLAGS@ @GLUT_INCDIR@ @GLEW_INCDIR@
LDFLAGS = @LDFLAGS@
OBJEXT = @OBJEXT@
SOEXT = @SOEXT@

View File

@@ -27,6 +27,7 @@ S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}"/${P}-simple.viewer.patch
"${FILESDIR}"/${P}-cflags.patch
"${FILESDIR}"/${P}-cg.patch
)