Re: passing flags to C compiler but not to C++ compiler

2013-07-29 Thread Robert Boehne
On 07/29/13 10:55, Vincent Torri wrote: On Mon, Jul 29, 2013 at 5:17 PM, Robert Boehne wrote: On 07/27/13 16:26, Vincent Torri wrote: On Sat, Jul 27, 2013 at 10:24 PM, Robert Boehne wrote: On 07/27/13 00:32, Vincent Torri wrote: hello in my sources, i have both C and C++ files. Something

Re: passing flags to C compiler but not to C++ compiler

2013-07-29 Thread Vincent Torri
On Mon, Jul 29, 2013 at 5:17 PM, Robert Boehne wrote: > On 07/27/13 16:26, Vincent Torri wrote: >> >> On Sat, Jul 27, 2013 at 10:24 PM, Robert Boehne >> wrote: >>> >>> >>> On 07/27/13 00:32, Vincent Torri wrote: hello in my sources, i have both C and C++ files. Something like

Re: passing flags to C compiler but not to C++ compiler

2013-07-29 Thread Robert Boehne
On 07/27/13 16:26, Vincent Torri wrote: On Sat, Jul 27, 2013 at 10:24 PM, Robert Boehne wrote: On 07/27/13 00:32, Vincent Torri wrote: hello in my sources, i have both C and C++ files. Something like my_lib_la_SOURCES = foo.c foo.cpp I want to pass, for example, -Wdeclaration-after-stateme

Re: passing flags to C compiler but not to C++ compiler

2013-07-27 Thread Robert Boehne
You add that flag to CXXFLAGS on the configure command line. configure CXXFLAGS=-Wdeclaration-after-statement Along with any other options you need. Vincent Torri wrote: >hello > >in my sources, i have both C and C++ files. Something like > >my_lib_la_SOURCES = foo.c foo.cpp > >I want to pass

Re: passing flags to C compiler but not to C++ compiler

2013-07-27 Thread Robert Boehne
On 07/27/13 00:32, Vincent Torri wrote: hello in my sources, i have both C and C++ files. Something like my_lib_la_SOURCES = foo.c foo.cpp I want to pass, for example, -Wdeclaration-after-statement to gcc. Hence, when compiling foo.cpp, i have the warning : cc1plus.exe: warning: command line

passing flags to C compiler but not to C++ compiler

2013-07-27 Thread Vincent Torri
hello in my sources, i have both C and C++ files. Something like my_lib_la_SOURCES = foo.c foo.cpp I want to pass, for example, -Wdeclaration-after-statement to gcc. Hence, when compiling foo.cpp, i have the warning : cc1plus.exe: warning: command line option '-Wdeclaration-after-statement' is