On Wed, Apr 15, 2009 at 11:50 AM, Nicholas Nethercote
<[email protected]> wrote:
>
> The build system has been updated recently, and those docs are
> out-of-date.  It's not that we've started using some new automake
> features, it just seems that old versions are doing the wrong thing.

automake 1.10 on my Mac has this documentation:

8.12 Assembly Support
=====================

Automake includes some support for assembly code.  There are two forms
of assembler files: normal (`*.s') and preprocessed by `CPP' (`*.S').

   The variable `CCAS' holds the name of the compiler used to build
assembly code.  This compiler must work a bit like a C compiler; in
particular it must accept `-c' and `-o'.  The values of `CCASFLAGS' and
`AM_CCASFLAGS' (or its per-target definition) is passed to the
compilation.  For preprocessed files, `DEFS', `DEFAULT_INCLUDES',
`INCLUDES', `CPPFLAGS' and `AM_CPPFLAGS' are also used.

   The autoconf macro `AM_PROG_AS' will define `CCAS' and `CCASFLAGS'
for you (unless they are already set, it simply sets `CCAS' to the C
compiler and `CCASFLAGS' to the C compiler flags), but you are free to
define these variables by other means.

   Only the suffixes `.s' and `.S' are recognized by `automake' as
being files containing assembly code.


automake 1.8.5 on a Linux box has this:

Assembly Support
================

Automake includes some support for assembly code.

   The variable `CCAS' holds the name of the compiler used to build
assembly code.  This compiler must work a bit like a C compiler; in
particular it must accept `-c' and `-o'.  The value of `CCASFLAGS' is
passed to the compilation.

   You are required to set `CCAS' and `CCASFLAGS' via `configure.ac'.
The autoconf macro `AM_PROG_AS' will do this for you.  Unless they are
already set, it simply sets `CCAS' to the C compiler and `CCASFLAGS' to
the C compiler flags.

   Only the suffixes `.s' and `.S' are recognized by `automake' as
being files containing assembly code.


The problem is that m_cpuid.S (and some other .S files) needs the
CPPFLAGS.  With the old automake it's not getting them.


So there are two possible paths:
- increase the required version of automake.  I'm not sure which
version the changed behaviour was introduced.
- copy CPPFLAGS into CCASFLAGS

The latter is probably easier...

Nick

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to