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

Conversation

akemin-dayo
Copy link
Contributor

@akemin-dayo akemin-dayo commented Oct 15, 2021

IMPORTANT: DO NOT MERGE UNTIL PR #767 IS MERGED.

This PR depends on changes to ENV (superenv / stdenv) made in PR #767.

Interestingly, aria2 actually builds fine even without ENV.cxx11 being present… but including it is a much better / "proper" way to do this.


※ Notes regarding OS X 10.4.x: Specifying -std=c++11 (which is what ENV.cxx11 does) on 10.4.x, at least with gcc-7 causes the build to fail as if the compiler does not support C++11 (which it most definitely does).

For some reason, omitting this flag actually allows aria2 to successfully build and run on OS X 10.4.x.

As a result, ENV.cxx11 is currently not set when building on OS X 10.4.x.

I'll have to verify sometime later in the future if this behaviour occurs with other versions of GCC that support C++11 (such as gcc-6 or gcc-5), or if it is somehow specific to gcc-7.


brew install aria2PASS (OS X 10.5.8 and OS X 10.4.11, both PowerPC)
brew audit aria2PASS

@akemin-dayo akemin-dayo changed the title 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] aria2: Add missing ENV.cxx11 in the install block so the -std=c++11 flag will be correctly passed on to GCC. Oct 15, 2021
@akemin-dayo akemin-dayo changed the title [Depends on PR #767 — do not merge until then] aria2: Add missing ENV.cxx11 in the install block so the -std=c++11 flag will be correctly passed on to GCC. 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] Oct 15, 2021
…1` flag will be correctly passed on to GCC.

This depends on changes to ENV (superenv / stdenv) made in PR mistydemeo#767.

Interestingly, aria2 actually builds fine even without `ENV.cxx11` being present… but including it is a much better / "proper" way to do this.
@akemin-dayo akemin-dayo force-pushed the aria2-add-missing-env-cxx11 branch from 492206f to 4a4a1ed Compare October 16, 2021 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant