Configure flags and universal variants

Elias Pipping pipping at macports.org
Wed Mar 28 04:05:23 PDT 2007


On Mar 28, 2007, at 3:35 AM, Paul Guyot wrote:

> Hi all,
>
> Trunk contains new code for configure flags and default universal  
> variant code.
>
> It would be great if this could be tested more and released as soon  
> as possible:
> - it would allow maintainers to work on universal variants
> - it would allow us to simplify many portfiles by removing:
> configure.env CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib

the -I/path/to/include should go probably go into the CPPFLAGS, not  
the (C|CXX)FLAGS. i've only tried it with nano, but nano i.e.

  * works with the CPP- & LDFLAGS set
  * does not work with the C-, CXX-, and LDFLAGS set

nonetheless, either the ports' creators don't stick really closely to  
that rule or it's us. i ran

   $grep "\-I\${prefix}/include" */*/Portfile > ~/foo; cd
   $gnused -r -i "s/.+CFLAGS\=\"*-I\\$\{prefix}\/include[^\n]*/foo/g"  
foo
   $gnused -r -i "s/.+CPPFLAGS\=\"*-I\\$\{prefix}\/include[^\n]*/bar/ 
g" foo
   $gnused -r -i "s/.+CXXFLAGS\=\"*-I\\$\{prefix}\/include[^\n]*/bla/ 
g" foo

(resulting in foo[1])

[1] http://rafb.net/p/nDOv2P12.html


Regards, Elias

>
> Besides, trunk code produces -O2 binaries for autoconf-based ports,  
> while any such port with the previous line is compiled -O0 with 1.4.0.
>
> Paul
>
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-dev




More information about the macports-dev mailing list