implementation of configure.env-append
Ken Cunningham
ken.cunningham.webuse at gmail.com
Wed Oct 9 17:04:57 UTC 2019
Quite right, and that's of course what I usually do. And it works most of
the time.
But in some cases, ports don't run a configure phase, or it is not fully
honored due to internal software tricks or malfeasance, or similar. So it
is necessary to get the extra variables into the environment directly (like
the port I was working on).
I don't know why it never came to me to pass in the $LDFLAGS directly on
build line like Marcus did -- seems so obvious now. I'm going to go back
and see if I can rewrite a few dozen Portfiles that I had to backflip
through to get it done (all those ports where I test for clang and add the
stdlib onto the compiler spec come to mind as a starting point, for
example).
Thanks, Ken
On Tue, Oct 8, 2019 at 1:59 AM Ryan Schmidt <ryandesign at macports.org> wrote:
>
>
>
> No... it's the other way around...
>
> If you want to modify LDFLAGS, do so by modifying configure.ldflags.
> MacPorts will set the LDFLAGS environment variable to the value of
> configure.ldflags before running the configure phase.
>
> This is the reason why we have all these configure.* variables: to make it
> easy/possible to set/append/prepend/replace values in commonly-used
> environment variables.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20191009/d731b716/attachment.html>
More information about the macports-dev
mailing list