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
This commit is contained in:
Michael Weber
2016-01-12 23:34:00 +01:00
parent 6da3ecee28
commit fc31b82604
2 changed files with 6 additions and 2 deletions

View File

@@ -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"

View File

@@ -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=""