libstrophe: fix test on 10.13

no /usr/local/lib for you
This commit is contained in:
ilovezfs 2017-07-12 09:30:41 -07:00
parent 2659dbb7a7
commit 4d5e6928d6

View file

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