gl2ps: fix test on 10.13

no /usr/local/lib for you
This commit is contained in:
ilovezfs 2017-07-04 15:54:10 -07:00
parent 19e1cea027
commit 7190379823

View file

@ -57,7 +57,7 @@ class Gl2ps < Formula
return 0;
}
EOS
system ENV.cc, "-lgl2ps", "-framework", "OpenGL", "-framework", "GLUT", "-framework", "Cocoa", "test.c", "-o", "test"
system ENV.cc, "-L#{lib}", "-lgl2ps", "-framework", "OpenGL", "-framework", "GLUT", "-framework", "Cocoa", "test.c", "-o", "test"
system "./test"
assert File.exist?("test.eps") && File.size("test.eps") > 0
end