CC, CXX et al in build, test and destroot phases
Toby Peterson
toby at macports.org
Sun Mar 22 16:00:54 PDT 2009
On Sun, Mar 22, 2009 at 15:48, Ryan Schmidt <ryandesign at macports.org> wrote:
> MacPorts sets the environment variables CC, CXX and so forth in the
> configure phase only.
>
> Can anyone think of a reason why it should not also set these variables in
> the build, test and destroot phases? It would save a lot of this kind of
> thing for ports that have an unusual configure script, or none at all:
>
>
> build.args-append CC=${configure.cc}
> destroot.args-append CC=${configure.cc}
Properly designed configure-based projects will pay attention to the
environment and set things according... configuring it so that the
build phase to consist of nothing more than "make". Ports that need
environment variables during build are more of a special case. Current
behavior is fine, and most correct.
- Toby
More information about the macports-dev
mailing list