About LOCAL_CPPFLAGS and LOCAL_CXXFLAGS

898 views
Skip to first unread message

Pedro Lamarão

unread,
Aug 25, 2010, 10:22:28 AM8/25/10
to android-ndk
I find this entry in the ANDROID-MK.TXT document strange.

--
LOCAL_CXXFLAGS
An alias for LOCAL_CPPFLAGS. Note that use of this flag is
obsolete
as it may disappear in future releases of the NDK.
--

I'm used to Makefiles generated by Automake, which I suppose follow
some kind of GNU stadard for Makefiles, where CPPFLAGS mean flags for
the pre-processor, while CXXFLAGS mean flags for the C++ compiler.

I think it would be useful to maintain consistency with this very
traditional build system nomenclature and keep CXXFLAGS for C++
compiler flags.

If a variable specific to the pre-processor is not considered useful,
drop CPPFLAGS instead. Or perhaps keep it, and make it a shared
variable between all compilers which use the C pre-processor.

--
P.

David Turner

unread,
Aug 25, 2010, 12:34:59 PM8/25/10
to andro...@googlegroups.com
Sorry but no, different build system == different conventions, deal with it.


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


Reply all
Reply to author
Forward
0 new messages