This is the mail archive of the ecos-bugs@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1000035] gcc-3.3: c++ flags passed to C compiler


http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000035





------- Additional Comments From andrew.lunn@ascom.ch  2003-15-07 08:28 BST -------
Just to make sure i understand:

In the individual HAL cdl, remove CYGBLD_GLOBAL_CFLAGS. Instead have
CYGBLD_GLOBAL_CFLAGS_COMMON, CYGBLD_GLOBAL_CFLAGS_C, CYGBLD_GLOBAL_CFLAGS_CPP.
Then somewhere at the top maybe hal/common, put them all back together into
CYGBLD_GLOBAL_CFLAGS. 

uneducated versions of ecosconfig use the CYGBLD_GLOBAL_CFLAGS. New versions use
the individual strings when building the makefile.

Another idea might be to teach cdl what flags belong to C or C++. In hal/common
have some lists and some CDL which looks at the current CYGBLD_GLOBAL_CFLAGS and
pulls it apart using the lists to form CYGBLD_GLOBAL_CFLAGS_COMMON,
CYGBLD_GLOBAL_CFLAGS_C, CYGBLD_GLOBAL_CFLAGS_CPP. Hopefully that would mean
there is no need to modify every HAL. The downside is its not as generic a fix.



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]