[134840] trunk/dports/multimedia/x264/Portfile

Joshua Root jmr at macports.org
Wed Apr 8 09:07:22 PDT 2015


On 2015-4-9 02:03 , David Evans wrote:
> On 4/8/15 8:58 AM, Joshua Root wrote:
>>> Revision: 134840
>>>            https://trac.macports.org/changeset/134840
>>> Author:   devans at macports.org
>>> Date:     2015-04-08 08:48:12 -0700 (Wed, 08 Apr 2015)
>>> Log Message:
>>> -----------
>>> x264: remove unnecessary use of eval.
>>>
>>> Modified Paths:
>>> --------------
>>>      trunk/dports/multimedia/x264/Portfile
>>>
>>> Modified: trunk/dports/multimedia/x264/Portfile
>>> ===================================================================
>>> --- trunk/dports/multimedia/x264/Portfile    2015-04-08 15:45:13 UTC
>>> (rev 134839)
>>> +++ trunk/dports/multimedia/x264/Portfile    2015-04-08 15:48:12 UTC
>>> (rev 134840)
>>> @@ -61,7 +61,7 @@
>>>       } else {
>>>           configure.args-append  
>>> --host=${build_arch}-apple-darwin${os.major}
>>>       }
>>> -    eval configure.ldflags-append ${configure.cc_archflags}
>>> +    configure.ldflags-append ${configure.cc_archflags}
>> You probably need a {*} there.
>>
>> - Josh
>>
> I assumed that configure.ldflags was a list, itself.

It is. But ${configure.cc_archflags} is also a list, and you don't want
to append the list as a whole, you want to append each of its elements.
Otherwise you end up with a list of ldflags that looks like:
-L/opt/local/lib -Wl,-headerpad_max_install_names {-arch x86_64}

- Josh


More information about the macports-dev mailing list