Getting the entire configure.cflags variable
sean at macports.org
Fri Oct 3 09:44:59 PDT 2014
Ryan Schmidt writes:
> On Oct 2, 2014, at 4:24 PM, Sean Farley wrote:
>> The petsc port, in an attempt to help users, ignores CFLAGS (and
>> friends) from the environment due to many users that accidentally had
>> them defined. So, I'm trying to pass the exact same CFLAGS to
> I see their configure script is some python monstrosity and that one of the files it includes contains:
> def resetEnvCompilers(self):
> ignoreEnv = ['CC','CFLAGS','CXX','CXXFLAGS','FC','FCFLAGS','F77','FFLAGS',
> for envVal in ignoreEnv:
> if envVal in os.environ:
> self.logPrintBox('***** WARNING: '+envVal+' (set to '+os.environ[envVal]+') found in environment variables - ignoring \n use ./configure '+envVal+'=$'+envVal+' if you really want to use that value ******')
> del os.environ[envVal]
> Perhaps that can be simply ripped out to allow env vars to work.
I work on the PETSc project, and yes, it is a python monstrosity. I
could easily patch this but that isn't the point. For starters, patching
a port for this would mean extra burden for the author.
It would seem better to fix the MacPorts internals but I was never that
good at Jenga.
More information about the macports-dev