Build log deceptively incomplete.

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Tue Mar 15 23:21:00 GMT 2011


Andy, All,

On Monday 07 March 2011 20:57:23 ANDY KENNEDY wrote:
> Looking through the scripts and the build.log together, I find that,
> whereas the build log _LOOKS_ like the complete commands are there, in
> fact these aren't.
[--SNIP--]
> Now, when viewing this in the log, it omits the ENV definitions.
> 
> My question is was this intentional?  Why not make the build command
> along the lines:
> 
>     CT_DoExecLog CFG                                \
>     CC_FOR_BUILD="${CT_BUILD}-gcc"                  \
>     CFLAGS="${CT_CFLAGS_FOR_HOST}"                  \
>     LDFLAGS="${final_LDFLAGS[*]}"                   \
>     CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}"         \
>     CXXFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}"       \
>     LDFLAGS_FOR_TARGET="${CT_TARGET_LDFLAGS}"       \
>     "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/configure"  \
>         --build=${CT_BUILD}                         \
>         --host=${CT_HOST}                           \
>         --target=${CT_TARGET}                       \
>         --prefix="${CT_PREFIX_DIR}"                 \
>         ${CC_SYSROOT_ARG}                           \
>         "${extra_config[@]}"                        \
>         --with-local-prefix="${CT_SYSROOT_DIR}"     \
>         --disable-nls                               \
>         --enable-symvers=gnu                        \
>         --enable-c99                                \
>         --enable-long-long                          \
>         ${CT_CC_EXTRA_CONFIG}
> 
> So that the ENV params that are set during the build get included
> into the log?

What about the attached? Slightly tested, seems OK for me...
No CT_DoExecLog was changed in that patch, so you'll have to change some
of them locally before you can see the change.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ct-ng.log-variable-assignements-in-commands.patch
Type: text/x-diff
Size: 905 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20110315/3ffcbee9/attachment.bin>
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq


More information about the crossgcc mailing list