libstrophe: use ENV.cflags.to_s.

This will stop this blowing up if `test do` is ever moved to superenv.

Do the opposite of Homebrew/homebrew#31446.

Closes Homebrew/homebrew#31446.
This commit is contained in:
Mike McQuaid 2014-08-21 15:42:22 +01:00
parent f808d051e5
commit 3c1203195e

View file

@ -53,7 +53,7 @@ class Libstrophe < Formula
}
EOS
flags = ["-I#{include}/", "-lstrophe"]
system ENV.cc, "-o", "test", "test.c", *(flags + ENV.cflags.split)
system ENV.cc, "-o", "test", "test.c", *(flags + ENV.cflags.to_s.split)
system "./test"
end
end