Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aria2: Add missing ENV.cxx11 in the install block so the -std=c++11 flag will be correctly passed on to GCC. [Depends on PR #767 — do not merge until then] #771

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Library/Formula/aria2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ class Aria2 < Formula
needs :cxx11

def install
if MacOS.version > :tiger
# Specifying -std=c++11 (which is what ENV.cxx11 does) on 10.4.x with gcc-7 causes the build to fail.
# For some reason, omitting this flag allows aria2 to successfully build and run on OS X 10.4.x.
# TODO: Verify if this behaviour occurs with other versions of GCC that support C++11 (such as gcc-6 or gcc-5).
ENV.cxx11
end

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