I realized you're trying to do something different (overriding a symbol) :)
I read too quickly.

Sorry for the noise.

On Thu, Nov 12, 2015 at 1:55 PM Johan Euphrosine <[email protected]> wrote:

> So one way we managed to work around this for our sample is to add
> c++_static explicitly in the ldLibs list, see:
>
> https://github.com/googlesamples/android-ndk/pull/101/files#diff-886ea61731056ac87d4fb91692ffabc0R37
>
>
> On Thu, Nov 12, 2015 at 1:25 AM Thasso Griebel <[email protected]>
> wrote:
>
>> Hi Igor,
>>
>> one thing that you can try to work around this is to manipulate the final
>> list of arguments in the link task after it was created:
>>
>> tasks.whenTaskAdded { t ->
>>     // find the tasks that links the final shared library
>>     if(t.name ==~ /link.*Shared.*/){
>>         println "${t.linkerArgs}"
>>     }
>> }
>>
>> Best,
>> -Thasso
>>
>>
>> On Tuesday, November 10, 2015 at 6:29:25 PM UTC+1, Igor Eremeev wrote:
>>>
>>> Hey guys,
>>>
>>> I'm trying to build some native code with
>>> gradle-experimental:0.3.0-alpha7 plugin, and I encountered a problem with
>>> link flags, which are added automatically by the plugin.
>>>
>>> Long story short, I need to put some .a dependency before -lc++_static
>>> to override a symbol, but the plugin always puts its flags on the top.
>>>
>>> Tried doing some magic with components.android {binaries.afterEach
>>> {it.mergedNdkConfig}} bit this list seems to be empty, and only works for
>>> adding new flags.
>>>
>>> Is there some way to access final list of flags to manually edit them?
>>> Or maybe some way to fully prohibit plugin from adding default flags?
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "adt-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to