-
Notifications
You must be signed in to change notification settings - Fork 381
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
[mpc] CFLAGS CXXFLAGS env be ignore #913
Comments
In your build script can't you assign CFLAGS/CXXFLAGS to a different environment variable which you add in your platform_macros.GNU file to CFLAGS/CXXFLAGS as used by the make files? |
Hi, Something like : export CONDA_CFLAGS="$CFLAGS" Why mpc does not append it's flags to environment one but create from ground? For your ref, My super build script, export ACE_ROOT=~/projects/ACE_TAO/ACE cd $ACE_ROOT echo '#include "ace/config-linux.h"' > ace/config.h echo 'xerces3=1' > $(ACE_ROOT)/bin/MakeProjectCreator/config/default.features platform_file=include/makeinclude/platform_linux.GNU bin/mwc.pl -type gnuace ACE.mwc --workers make -j Tks, |
Do this process need to be done for all flags like LDFLAGS?as mpc do some detect and variable set from ground? As in https://conda.io/projects/conda-build/en/latest/user-guide/environment-variables.html Tks, |
See http://www.dre.vanderbilt.edu/~schmidt/commercial-support.html for the commercial support providers when you want to have guaranteed help, my free time is very limited |
While I could imagine environments like Conda setting these variables, I don't think it's normal to do so.
This says |
@iguessthislldo as conda bundle compiler itself,to build by conda , it's better to use conda version to achieve binary compitibility. https://www.anaconda.com/utilizing-the-new-compilers-in-anaconda-distribution-5/ https://conda.io/projects/conda-build/en/latest/user-guide/environment-variables.html Even for make, it will first detect and set these variable, and then use laterly. If it's already exist, it will be use directly or be append. But mpc directly override them or part of them Ref: a conda build c++ project https://github.com/conda-forge/flatbuffers-feedstock/blob/master/recipe/build.sh |
I try to compile ace under conda envirement which will automate set many env like CFLAGS CXXFLAGS, but mpc ignore it which cause error.
How to make mpc append to these environment variable but not replace??
Tks,
Cong
The text was updated successfully, but these errors were encountered: