You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by Eric Lemings <Er...@roguewave.com> on 2008/06/28 01:07:57 UTC
User-defined compiler flags
What is the proper build procedure for specifying additional
user-defined compiler flags?
Thanks,
Brad.
RE: User-defined compiler flags
Posted by Farid Zaripov <Fa...@epam.com>.
> -----Original Message-----
> From: Martin Sebor [mailto:msebor@gmail.com] On Behalf Of Martin Sebor
> Sent: Wednesday, July 02, 2008 6:30 PM
> To: dev@stdcxx.apache.org
> Subject: Re: User-defined compiler flags
>
> > The libc_decl.sh script doesn't using CPPOPTS, CXXOPTS and LDOPTS.
> >
> > ----------------
> > make builddir BUILDDIR=mingw15s BUILDTYPE=15s CONFIG=gcc.config
> > CPPOPTS=-mno-cygwin LDOPTS=-mno-cygwin cd mingw15s/include && make
> > CPPOPTS=-mno-cygwin LDOPTS=-mno-cygwin
> > ----------------
> >
> > But looking into config.log file I see that -mno-cygwin option is
> > not used at configure step.
>
> Unless there is some other mechanism that controls this on
> Windows it seem that it should work.
The same behavior on Ubuntu Linux.
> If you agree, I suggest we open an issue/enhancement as a reminder to
implement it.
https://issues.apache.org/jira/browse/STDCXX-982
Farid.
Re: User-defined compiler flags
Posted by Martin Sebor <se...@roguewave.com>.
Farid Zaripov wrote:
>> -----Original Message-----
>> From: Martin Sebor [mailto:msebor@gmail.com] On Behalf Of Martin Sebor
>> Sent: Saturday, June 28, 2008 2:17 AM
>> To: dev@stdcxx.apache.org
>> Subject: Re: User-defined compiler flags
>>
>> Eric Lemings wrote:
>>>
>>> What is the proper build procedure for specifying additional
>>> user-defined compiler flags?
>> Quoting from section 5, Library Build Instructions, of our README
>> (http://svn.apache.org/repos/asf/stdcxx/trunk/README):
>>
>> To change preprocessor, compiler, or linker
>> options you can
>> either set the make variables CPPOPTS, CXXOPTS, and
>> LDOPTS on the
>> command line (recommended, except with HP aCC)
>> or modify
>> ${BUILDDIR}/makefile.in. The second option is
>> recommended when
>> compiling with HP aCC (as the compiler looks for
>> environment
>> variables with the same names).
>
> The libc_decl.sh script doesn't using CPPOPTS, CXXOPTS and LDOPTS.
>
> ----------------
> make builddir BUILDDIR=mingw15s BUILDTYPE=15s CONFIG=gcc.config
> CPPOPTS=-mno-cygwin LDOPTS=-mno-cygwin
> cd mingw15s/include && make CPPOPTS=-mno-cygwin LDOPTS=-mno-cygwin
> ----------------
>
> But looking into config.log file I see that -mno-cygwin option is not
> used at configure step.
Unless there is some other mechanism that controls this on Windows
it seem that it should work. If you agree, I suggest we open an
issue/enhancement as a reminder to implement it.
Martin
>
> Farid.
RE: User-defined compiler flags
Posted by Farid Zaripov <Fa...@epam.com>.
> -----Original Message-----
> From: Martin Sebor [mailto:msebor@gmail.com] On Behalf Of Martin Sebor
> Sent: Saturday, June 28, 2008 2:17 AM
> To: dev@stdcxx.apache.org
> Subject: Re: User-defined compiler flags
>
> Eric Lemings wrote:
> >
> > What is the proper build procedure for specifying additional
> > user-defined compiler flags?
>
> Quoting from section 5, Library Build Instructions, of our README
> (http://svn.apache.org/repos/asf/stdcxx/trunk/README):
>
> To change preprocessor, compiler, or linker
> options you can
> either set the make variables CPPOPTS, CXXOPTS, and
> LDOPTS on the
> command line (recommended, except with HP aCC)
> or modify
> ${BUILDDIR}/makefile.in. The second option is
> recommended when
> compiling with HP aCC (as the compiler looks for
> environment
> variables with the same names).
The libc_decl.sh script doesn't using CPPOPTS, CXXOPTS and LDOPTS.
----------------
make builddir BUILDDIR=mingw15s BUILDTYPE=15s CONFIG=gcc.config
CPPOPTS=-mno-cygwin LDOPTS=-mno-cygwin
cd mingw15s/include && make CPPOPTS=-mno-cygwin LDOPTS=-mno-cygwin
----------------
But looking into config.log file I see that -mno-cygwin option is not
used at configure step.
Farid.
Re: User-defined compiler flags
Posted by Martin Sebor <se...@roguewave.com>.
Eric Lemings wrote:
>
> What is the proper build procedure for specifying additional
> user-defined compiler flags?
Quoting from section 5, Library Build Instructions, of our README
(http://svn.apache.org/repos/asf/stdcxx/trunk/README):
To change preprocessor, compiler, or linker options you can
either set the make variables CPPOPTS, CXXOPTS, and LDOPTS on the
command line (recommended, except with HP aCC) or modify
${BUILDDIR}/makefile.in. The second option is recommended when
compiling with HP aCC (as the compiler looks for environment
variables with the same names).
When using HP aCC, you can prefix the names of each of the variables
with an underscore (i.e., _CPPOPTS, _CXXOPTS, and _LDOPTS) to get the
same effect.
Martin