-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
sage-env exports empty CXXFLAGS #16149
Comments
comment:1
I'd suggest to replace the above with at least if [ "${CFLAGS+set}" = set ] && [ -z "$CXXFLAGS" ]; then
export CXXFLAGS="$CFLAGS"
fi which only sets (and exports) Or only use |
comment:2
It would probably make sense to even |
This comment has been minimized.
This comment has been minimized.
comment:3
Typo. |
Branch: u/chapoton/16149 |
New commits:
|
Commit: |
Author: Frédéric Chapoton |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Volker Braun |
Changed branch from u/chapoton/16149 to |
That happens if
CFLAGS
are empty (or not exported at all, which presumably is the most frequent case) andCXXFLAGS
aren't either:Unintentionally having exported but empty
CXXFLAGS
breaks at least MPIR, because it assumes the user had intentionally set them, so leaves them as they are (empty that is), not passing potentially important architecture and ABI flags to the C++ compiler (e.g.-m...
flags tog++
).The solution is of course simple: Don't (set and) export
CXXFLAGS
ifCFLAGS
aren't exported either. Not sure if settingCXXFLAGS
toCFLAGS
in case the latter are non-empty (or empty but exported) is desirable at all.CC: @jpflori
Component: scripts
Keywords: CFLAGS MPIR C++ ABI
Author: Frédéric Chapoton
Branch/Commit:
420fa5f
Reviewer: Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/16149
The text was updated successfully, but these errors were encountered: