json-glib: remove compiler flags found in the environment

This commit is contained in:
Zhiming Wang 2016-07-19 08:06:32 +08:00 committed by Mike McQuaid
parent fbc275ed01
commit b5db7ef93a

View file

@ -33,8 +33,7 @@ class JsonGlib < Formula
EOS
gettext = Formula["gettext"]
glib = Formula["glib"]
flags = (ENV.cflags || "").split + (ENV.cppflags || "").split + (ENV.ldflags || "").split
flags += %W[
flags = %W[
-I#{gettext.opt_include}
-I#{glib.opt_include}/glib-2.0
-I#{glib.opt_lib}/glib-2.0/include