diff --git a/Formula/osm2pgsql.rb b/Formula/osm2pgsql.rb index a14c3ea81f5..d7b6636d0b3 100644 --- a/Formula/osm2pgsql.rb +++ b/Formula/osm2pgsql.rb @@ -14,7 +14,11 @@ class Osm2pgsql < Formula depends_on "protobuf-c" => :optional def install - args = ["--with-proj=#{Formula["proj"].opt_prefix}"] + args = [ + "--with-proj=#{Formula["proj"].opt_prefix}", + "--with-zlib=/usr", + "--with-bzip2=/usr" + ] if build.with? "protobuf-c" args << "--with-protobuf-c=#{Formula["protobuf-c"].opt_prefix}" end