summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2016-01-12 23:34:00 +0100
committerMichael Weber <xmw@gentoo.org>2016-01-12 23:43:07 +0100
commitfc31b82604ef2d4b6c55d60f52bbb410c809b5ea (patch)
treeae217b880531ece462bfac0e7e87a58881fd28c4
parentdev-python/python-keystoneclient: bup (diff)
downloadgentoo-fc31b82604ef2d4b6c55d60f52bbb410c809b5ea.tar.gz
gentoo-fc31b82604ef2d4b6c55d60f52bbb410c809b5ea.tar.bz2
gentoo-fc31b82604ef2d4b6c55d60f52bbb410c809b5ea.zip
app-text/llpp: adopt -std=c99 for gcc-4.9 and some other -W flags form upstream (thanks kaste for the report).
Package-Manager: portage-2.2.26
-rw-r--r--app-text/llpp/llpp-22.ebuild2
-rw-r--r--app-text/llpp/llpp-9999.ebuild6
2 files changed, 6 insertions, 2 deletions
diff --git a/app-text/llpp/llpp-22.ebuild b/app-text/llpp/llpp-22.ebuild
index 5043975096f7..58d774e71ce3 100644
--- a/app-text/llpp/llpp-22.ebuild
+++ b/app-text/llpp/llpp-22.ebuild
@@ -47,7 +47,7 @@ src_compile() {
local ocaml=$(usex ocamlopt ocamlopt.opt ocamlc.opt)
local cmo=$(usex ocamlopt cmx cmo)
local cma=$(usex ocamlopt cmxa cma)
- local ccopt="$(freetype-config --cflags ) -O -include ft2build.h -D_GNU_SOURCE -DUSE_FONTCONFIG"
+ local ccopt="$(freetype-config --cflags ) -O -include ft2build.h -D_GNU_SOURCE -DUSE_FONTCONFIG -std=c99 -Wextra -Wall -pedantic-errors -Wunused-parameter -Wsign-compare -Wshadow"
#if use egl ; then
# ccopt+=" -DUSE_EGL $(pkg-config --cflags egl)"
# local egl="egl"
diff --git a/app-text/llpp/llpp-9999.ebuild b/app-text/llpp/llpp-9999.ebuild
index fc2df017ae0c..c39e01aa2979 100644
--- a/app-text/llpp/llpp-9999.ebuild
+++ b/app-text/llpp/llpp-9999.ebuild
@@ -45,7 +45,11 @@ src_compile() {
local ocaml=$(usex ocamlopt ocamlopt.opt ocamlc.opt)
local cmo=$(usex ocamlopt cmx cmo)
local cma=$(usex ocamlopt cmxa cma)
- local ccopt="$(freetype-config --cflags ) -O -include ft2build.h -D_GNU_SOURCE -DUSE_FONTCONFIG"
+ local ccopt="$(freetype-config --cflags ) -O -include ft2build.h -D_GNU_SOURCE -DUSE_FONTCONFIG -std=c99 -Wextra -Wall -pedantic-errors -Wunused-parameter -Wsign-compare -Wshadow"
+ #if use egl ; then
+ # ccopt+=" -DUSE_EGL $(pkg-config --cflags egl)"
+ # local egl="egl"
+ #fi
if use static ; then
local cclib=""
local slib=""