[PATCH] check_{cc,ld,strip} verbosity

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Mon Jul 24 20:45:03 UTC 2006


Hello all!

While trying to build a shared libbusybox on x86_64 (*), I came across the need
to know wether the check_{cc,ld,strip} macros ack'ed or not the tested option.

Here is a patch that adds the test result on the output of the test when V==2.

As a bonus, it fixes the check for the --gc-sections option check for ld.

Results is something like (forgive me the eol for STRIPCMD):

====
make V=2
CC="gcc" check_cc "-Wall" --> "-Wall"
CC="gcc" check_cc "-Wblah" --> ""
LD="ld" check_ld "--warn-common" --> "--warn-common"
LD="ld" check_ld "--foobar" --> ""
STRIPCMD="strip" check_strip "-s --remove-section=.note --remove-section=.comme
nt"--> "-s --remove-section=.note --remove-section=.comment"
STRIPCMD="strip" check_strip "--gnagna" --> ""
====

Regards,
Yann E. MORIN.

(*) that does not work because the objects that go in the .so are not compiled
    with -fPIC, and thus the linker declines responsibility, and refuses to
    link them into a shared library.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °---.----------------:  X  AGAINST      |  /e\  There is no  |
| web: ymorin.free.fr | SETI at home 3808 | / \ HTML MAIL    |  """  conspiracy.  |
°---------------------°----------------°------------------°--------------------°
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_macros_verbosity.patch
Type: text/x-diff
Size: 2882 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060724/8670decd/attachment.bin 


More information about the busybox mailing list