-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pdnsrec: build with brewed
llvm
on Mojave
This fails with system Clang.
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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} | ||
|