libmodbus: fix test on 10.13

no /usr/local/lib for you
This commit is contained in:
ilovezfs 2017-07-12 09:30:39 -07:00
parent e6733887a9
commit 4cb89933af

View file

@ -49,7 +49,7 @@ class Libmodbus < Formula
return (p == 0);
}
EOS
system ENV.cc, "hellomodbus.c", "-o", "foo", "-lmodbus",
system ENV.cc, "hellomodbus.c", "-o", "foo", "-L#{lib}", "-lmodbus",
"-I#{include}/libmodbus", "-I#{include}/modbus"
system "./foo"
end