Skip to content

Commit

Permalink
pdnsrec: build with brewed llvm on Mojave
Browse files Browse the repository at this point in the history
This fails with system Clang.
  • Loading branch information
carlocab committed May 17, 2021
1 parent 2f2e20e commit b6b8e13
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Formula/pdnsrec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,24 @@ class Pdnsrec < Formula
depends_on "lua"
depends_on "[email protected]"

on_macos do
depends_on "llvm" => :build if MacOS.version <= :mojave
end

fails_with :clang do
build 1100
cause <<-EOS
Undefined symbols for architecture x86_64:
"MOADNSParser::init(bool, std::__1::basic_string_view<char, std::__1::char_traits<char> > const&)"
EOS
end

def install
ENV.cxx11
ENV.remove "HOMEBREW_LIBRARY_PATHS", Formula["llvm"].opt_lib
on_macos do
ENV.llvm_clang if MacOS.version <= :mojave
end

args = %W[
--prefix=#{prefix}
Expand Down

0 comments on commit b6b8e13

Please sign in to comment.