[49117] trunk/dports/print/freetype/Portfile

Marcus Calhoun-Lopez mcalhoun at macports.org
Mon Apr 6 01:23:52 PDT 2009


Ryan Schmidt <ryandesign at ...> writes:

> > +if { ${os.arch}=="i386" } {
> > +    if { ${os.major}>=10 } {
> > +        set merger_configure_env(ppc) CC_BUILD=${configure.cc}
> > +    }
> > +    set merger_configure_env(ppc64)   CC_BUILD=${configure.cc}
> > +} else {
> > +    set merger_configure_env(i386)    CC_BUILD=${configure.cc}
> > +    set merger_configure_env(x86_64)  CC_BUILD=${configure.cc}
> > +}
> 
> I don't understand what these lines are for. Could you explain? Why  
> is this environment variable only required on these specific OS/arch  
> combinations, and/or why are they detrimental on the other OS/arch  
> combinations?
> 

CC_BUILD is only needed when cross-compiling.
For what purpose, I can not say, but it seems to need a compiler
which builds binaries to run on the build architecture.

When not cross-compiling, the configure script happily sets CC_BUILD to CC.

I do not know if setting CC_BUILD is detrimental to regular builds, but my policy
has been to make the smallest possible change to the build process
to get universal to work (especially the ports of others).
This minimizes the chances of breaking the regular build.

-Marcus





More information about the macports-dev mailing list