[android-porting] gcc flags for native library..

182 views
Skip to first unread message

Deva R

unread,
May 5, 2010, 5:22:22 AM5/5/10
to android-porting, android-...@googlegroups.com
Hi,
I wish to cross check the flags passed to GCC while building a native
libarary.,
anyone know how to do it??

i'm aware of CFLAGS 'm populating, but wish to check all the flags
passed via global .mk files..
'make -d' gives dump of all steps, but still hides gcc command.,

thanks in advance.

-Deva

--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

hedwin

unread,
May 5, 2010, 5:53:14 AM5/5/10
to android-...@googlegroups.com, android-porting
What I normally do is add the -v flag to CC and LD. I try to put it where gcc is defined so I sure it is not filtered out.
This will print the include paths, library paths and flags used when compiling or linking.


On Wed, May 5, 2010 at 11:22 AM, Deva R <r.de...@gmail.com> wrote:
Hi,
I wish to cross check the flags passed to GCC while building a native
libarary.,
anyone know how to do it??

i'm aware of CFLAGS 'm populating, but wish to check all the flags
passed via global .mk files..
'make -d' gives dump of all steps, but still hides gcc command.,

thanks in advance.

-Deva

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

Sambhav

unread,
May 5, 2010, 6:30:17 AM5/5/10
to hedwin...@gmail.com, android-...@googlegroups.com, android-porting

Chih-Wei

unread,
May 5, 2010, 7:29:20 AM5/5/10
to android-porting
To print all commands executed by make, add
showcommands as an additional goal:

make showcommands

On 5月5日, 下午5時22分, Deva R <r.deva...@gmail.com> wrote:
> Hi,
> I wish to cross check the flags passed to GCC while building a native
> libarary.,
> anyone know how to do it??
>
> i'm aware of CFLAGS 'm populating, but wish to check all the flags
> passed via global .mk files..
> 'make -d' gives dump of all steps, but still hides gcc command.,
>

Deva R

unread,
May 5, 2010, 7:46:45 AM5/5/10
to cwh...@linux.org.tw, android-porting
Hi Chih-Wei, hedwin, Sambhav,

got it now.,
thanks lot for the hint.. :)
-deva
Reply all
Reply to author
Forward
0 new messages