How can I add compiler flags for Android build?

I want to add some flags ( via project.xml) to my library. I tried with :

 <compiler id="gcc" if="android">
    <!-- Example adding a build flag -->
    <flag value = "-Wl" />
	<flag value = "--build-id" />

but it doesn’t help.

After the check with the command : readelf -n the Build ID: is still missing.
Anyone to help ?

Thank you.