libinfinity: remove compiler flags found in the environment

This commit is contained in:
Zhiming Wang 2016-07-19 08:06:34 +08:00 committed by Mike McQuaid
parent 4003e60fc2
commit 27facd65d3

View file

@ -47,8 +47,7 @@ class Libinfinity < Formula
gsasl = Formula["gsasl"]
libtasn1 = Formula["libtasn1"]
nettle = Formula["nettle"]
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