portconfigure.tcl - why does appending to an ENV variable (like CFLAGS) not also append to configure.cflags ?

Ken Cunningham ken.cunningham.webuse at gmail.com
Wed Nov 7 23:28:06 UTC 2018


On 2018-11-07, at 1:27 PM, Ryan Schmidt wrote:

Thanks for the detailed explanation. I do understand what you mean about +universal. Just to point out that this port is not actually building universal here, it's just building normally.

What I was expecting would be that portconfigure.tcl would do something like this at the end of the process

foreach item in CXXFLAGS
    configure.cxxflags-append item
end

so then ${configure.cxxflags} would exactly match CXXFLAGS in the environment.

Then a whole lot of Portfile shenanigans could go away, I think.

Ken


More information about the macports-dev mailing list