Dan Fandrich
ebeac1685a
Define GNU-specific link options in one place
...
This makes them easier to change to support a non-GNU toolchain.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-19 20:03:21 +02:00
Bernhard Reutner-Fischer
a88585a931
trylink: gold may not support --sort-common (yet)
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-05-21 12:11:34 +02:00
Denys Vlasenko
eb1cda2f2d
trylink: don't use ld --gc-sections if ld doesn't support it
...
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-27 00:24:35 +02:00
Bernhard Reutner-Fischer
2dfd295726
- give glob a chance
...
CROSS_COMPILE=~/foo-bar-baz would fail otherwise
See http://www.uclibc.org/lists/buildroot/2008-October/011191.html
2008-10-23 13:49:21 +00:00
Denis Vlasenko
b522d6931d
trylink: make messages less confusing
2008-08-26 20:09:08 +00:00
Denis Vlasenko
dd316dd283
hush: add support for ':'; create testsuite entries
...
text data bss dec hex filename
809569 612 7044 817225 c7849 busybox_old
809528 612 7044 817184 c7820 busybox_unstripped
2008-06-14 15:50:55 +00:00
Bernhard Reutner-Fischer
50dbed95fb
- pass flags to ld in one argument
2008-05-09 12:43:04 +00:00
Denis Vlasenko
a2dcb50175
trylink: fix glibc check; make --sort-section option look less ugly
2008-04-30 00:15:56 +00:00
Denis Vlasenko
4824ccae8e
*: fix build problems found with randomconfig
2008-03-21 18:29:01 +00:00
Denis Vlasenko
f1d93ec420
build system: pass CFLAGS to link stage too (closes bug 1376)
2008-02-14 12:24:14 +00:00
Denis Vlasenko
0a4624aece
build system: don't use -o /dev/null, old gcc can delete /dev/null!
2008-02-13 07:47:37 +00:00
Denis Vlasenko
3f9c848576
trylink: instead of build error, disable --gc-sections if GLIBC && STATIC
...
nameif: glibc build fixlet
2007-12-28 17:04:42 +00:00
Mike Frysinger
49d15890e0
make output a little more friendly
2007-11-18 06:42:56 +00:00
Denis Vlasenko
130f559f4d
trylink: accomodate older versions of ld
2007-11-13 17:36:12 +00:00
Denis Vlasenko
15cb4a4272
fix a problem with two different applet_name's
2007-10-11 10:06:26 +00:00
Denis Vlasenko
9b49a5ed85
add -fvisibility=hidden to CC flags, mark XXX_main functions
...
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
2007-10-11 10:05:36 +00:00
Denis Vlasenko
724d196c75
Move applets/applet.c into libbb, allows to get rid of --whole-archive
...
(smaller code). Tested in static and shared mode.
2007-10-10 14:41:07 +00:00
Denis Vlasenko
141750e388
trylink: s/strip/$STRIP/g
2007-10-10 10:05:35 +00:00
Denis Vlasenko
42e418292d
trylink: trivial cleanup
2007-10-09 18:01:13 +00:00
Denis Vlasenko
01f3b2c91a
trylink: reformat link flags for readability
...
trylink: add --sort-section alignment:
text data bss dec hex filename
- 6557 428 3260 10245 2805 busybox
+ 6555 428 3260 10243 2803 busybox
- 909621 1076 12108 922805 e14b5 libbusybox.so.1.8.0.svn
+ 908868 1050 12016 921934 e114e libbusybox.so.1.8.0.svn
2007-10-09 13:49:26 +00:00
Denis Vlasenko
d19b87ece4
trylink: remove useless redirects, add missing error checks
2007-10-09 13:08:02 +00:00
Denis Vlasenko
8d755adc1a
trylink: trivial fixes
2007-10-09 10:15:41 +00:00
Denis Vlasenko
e9fd69c8e8
make "individual applets" build less noisy.
...
add *.tmp to list of files deleted by make mrproper.
2007-10-08 22:16:14 +00:00
Denis Vlasenko
642a52d65e
make --help work for "individual applets" too.
2007-10-07 21:00:41 +00:00
Denis Vlasenko
d62fd84d4b
libbusybox: move (possibly compressed) help stuff into libbusybox.
...
Makes individual binaries much smaller.
2007-10-07 20:46:34 +00:00
Denis Vlasenko
f545be083d
reviving libbusybox, adding CONFIG_INDIVIDUAL part 4
2007-10-07 17:06:26 +00:00
Denis Vlasenko
def8898596
reviving libbusybox, adding CONFIG_INDIVIDUAL part 3
2007-10-07 17:06:01 +00:00
Denis Vlasenko
76a6b236a9
reviving libbusybox, adding CONFIG_INDIVIDUAL part 2
2007-10-07 17:05:42 +00:00
Denis Vlasenko
3240474c23
reviving libbusybox, adding CONFIG_INDIVIDUAL part 1
2007-10-07 17:05:22 +00:00
Denis Vlasenko
9862e6b056
trylink: reinstate accidentally deleted --verbose
...
trylink: remove commented-out parts
2007-09-03 11:28:14 +00:00
Bernhard Reutner-Fischer
d2bb2d3918
- Generally strip off -l that does not pull in a lib.
...
If l_list is non-empty then add the group flags.
2007-09-02 15:28:30 +00:00
Bernhard Reutner-Fischer
8d91c13df5
- fix bug where we linked again -lm even though it is not needed.
...
For BBOX_LIB_LIST="crypt m" trylink ... with just applet true, we pulled in
libm because in this case we tried to use invalid flags (plain "-l" without
a lib) which of course failed, thus the script thought that -lm was needed.
The fix is not to pass "-l" without a lib if we are about to check if any
or the last remaining lib is really needed.
2007-09-02 14:51:54 +00:00
Denis Vlasenko
f87f495e65
Update defconfig; fix comments
2007-08-24 10:27:41 +00:00
Denis Vlasenko
dbe6e66d6a
trylink: automatically use custom link script if user provides one
...
vinfo_msg: one user (info_msg), incorporate in it
*: style fixes
2007-08-14 16:43:01 +00:00
Denis Vlasenko
6ca409e0e4
trylink: produce even more info about final link stage
...
trylink: explain how to modify link and drastically decrease amount
of padding (unfortunately, needs hand editing ATM).
*: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts
size saving: 0.5k
2007-08-12 20:58:27 +00:00
Denis Vlasenko
73f21e9cb3
trylink: s/&& exit 1/|| exit 1/ (spotted by Alex Landau <landau_alex@yahoo.com>)
2007-08-06 12:18:01 +00:00
Denis Vlasenko
8274e06677
sed: fix 'q' command handling ("Nguyen Thai Ngoc Duy" <pclouds@gmail.com>)
...
add testsuite entry for it. Fix applet order checker. Fix cmp yelling.
trylink: fix error file and map file generation
applets: fix applet order
2007-08-06 03:41:08 +00:00
Denis Vlasenko
557fb713e0
chpasswd: fixes and code shrink
...
update_passwd 732 734 +2
chpasswd_main 318 292 -26
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-26) Total: -24 bytes
text data bss dec hex filename
781564 1168 11900 794632 c2008 busybox_old
781548 1168 11900 794616 c1ff8 busybox_unstripped
2007-07-21 13:25:28 +00:00
Denis Vlasenko
21d1014b5b
chpasswd: new applet by Alexander Shishkin <virtuoso@slind.org>
2007-07-20 21:28:41 +00:00
Denis Vlasenko
150d2fa114
Modify method of linking against libs. Now we fisrt try all
...
specified libs, and if it succeeds, we try to remove them
one-by-one. If link succeeds, then library is thrown out.
Should solve the problem with SELinux linking in libsepol
even when not needed.
2007-07-17 20:39:27 +00:00
Denis Vlasenko
41e1dc3f8b
make clean deletes .kernelrelease now
...
trylink deleted empty linker stderr on success
2007-03-18 21:45:21 +00:00
Denis Vlasenko
84a9b8750e
build system: produce link map. Rather useful when you
...
are wondering why your busybox is much bigger that you hoped for.
2007-03-15 23:44:10 +00:00
Denis Vlasenko
018e085d44
stop using bash'isms ('function')
...
runtest: do not depend on busybox.links
2007-02-25 00:40:37 +00:00
Denis Vlasenko
7d219aab70
build system overhaul
2006-10-05 10:17:08 +00:00