diff --git a/Formula/libbitcoin-database.rb b/Formula/libbitcoin-database.rb index 88f303bd32..5257bee377 100644 --- a/Formula/libbitcoin-database.rb +++ b/Formula/libbitcoin-database.rb @@ -40,9 +40,10 @@ class LibbitcoinDatabase < Formula return 0; } EOS - system ENV.cxx, "-std=c++11", "test.cpp", - "-lbitcoin", "-lbitcoin-database", "-lboost_system", - "-o", "test" + system ENV.cxx, "-std=c++11", "test.cpp", "-o", "test", + "-L#{Formula["libbitcoin"].opt_lib}", "-lbitcoin", + "-L#{lib}", "-lbitcoin-database", + "-L#{Formula["boost"].opt_lib}", "-lboost_system" system "./test" end end