aboutsummaryrefslogtreecommitdiff
path: root/scripts/trylink (follow)
Commit message (Collapse)AuthorAgeFilesLines
* trylink: on failure, print a hint about CONFIG_EXTRA_LDLIBSDenys Vlasenko2016-04-031-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trylink: include LDFLAGS when checking linkageMike Frysinger2015-12-011-1/+1
| | | | | | | | | | The user might be including options in their LDFLAGS (like -fuse-ld=gold) that change the behavior of the linker and thus change the results of the flag tests. Make sure we include the user's LDFLAGS when running these tests so we filter out flags that will fail when used later on. URL: https://bugs.gentoo.org/499712 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* typo fixDenys Vlasenko2015-10-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* scripts/trylink: remove $CPPFLAGSDenys Vlasenko2015-10-201-3/+3
| | | | | | | We don't use it in final link, should not use it in check_FOO then. This uncovered a logic bug in glibc check... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* scripts/trylink: fix bit-rotted linker option verificationDenys Vlasenko2015-10-201-24/+35
| | | | | | | | | | | | | | To that end, *make it complain* when check_cc fails on options we usually want to succeed. text data bss dec hex filename 929697 932 17692 948321 e7861 busybox-1.23.2/busybox 915361 911 17484 933756 e3f7c busybox-1.23.2.fixed/busybox 927725 932 17448 946105 e6fb9 busybox-1.24.0/busybox 913630 911 17240 931781 e37c5 busybox-1.24.0.fixed/busybox Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trylink: respect compiler settings when probing featuresMike Frysinger2015-03-161-2/+2
| | | | | | | | The CPPFLAGS/CFLAGS settings might have features that matter, so make sure we utilize them when testing the compiler. URL: https://bugs.gentoo.org/471118 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* trylink: use mktemp instead of hardcoding pathsMike Frysinger2015-03-161-4/+4
| | | | | | | This way we respect standard tempdir env vars and are guaranteed to be unique. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* trylink: emit names of linked executablesDenys Vlasenko2014-05-031-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe-small: fix help messages for aliased module-related appletsDenys Vlasenko2014-04-191-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trylink: only prefix libs with -lMike Frysinger2013-09-281-3/+3
| | | | | | | | | If our pkg-config queries pass back a flag like -pthread, the trylink script will expand that to -l-pthread. So change trylink to only add the -l prefix to a value that doesn't have a - prefix already. Reported-by: thaehaid@incognitomail.org Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* pam link error with SHARED_BUSYBOX and LIBBUSYBOX enabledSteve Iribarne2011-05-091-0/+1
| | | | | Signed-off-by: Steve Iribarne <siribarne@grid-net.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cosmetics on top of Dan's patchesDenys Vlasenko2010-06-191-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Define GNU-specific link options in one placeDan Fandrich2010-06-191-21/+18
| | | | | | | 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>
* trylink: gold may not support --sort-common (yet)Bernhard Reutner-Fischer2010-05-211-7/+10
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* trylink: don't use ld --gc-sections if ld doesn't support itDenys Vlasenko2009-06-271-0/+5
| | | | | Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* - give glob a chanceBernhard Reutner-Fischer2008-10-231-3/+2
| | | | | CROSS_COMPILE=~/foo-bar-baz would fail otherwise See http://www.uclibc.org/lists/buildroot/2008-October/011191.html
* trylink: make messages less confusingDenis Vlasenko2008-08-261-2/+2
|
* hush: add support for ':'; create testsuite entriesDenis Vlasenko2008-06-141-5/+9
| | | | | | | text data bss dec hex filename 809569 612 7044 817225 c7849 busybox_old 809528 612 7044 817184 c7820 busybox_unstripped
* - pass flags to ld in one argumentBernhard Reutner-Fischer2008-05-091-5/+5
|
* trylink: fix glibc check; make --sort-section option look less uglyDenis Vlasenko2008-04-301-10/+10
|
* *: fix build problems found with randomconfigDenis Vlasenko2008-03-211-1/+1
|
* build system: pass CFLAGS to link stage too (closes bug 1376)Denis Vlasenko2008-02-141-11/+12
|
* build system: don't use -o /dev/null, old gcc can delete /dev/null!Denis Vlasenko2008-02-131-4/+8
|
* trylink: instead of build error, disable --gc-sections if GLIBC && STATICDenis Vlasenko2007-12-281-9/+40
| | | | | nameif: glibc build fixlet
* make output a little more friendlyMike Frysinger2007-11-181-3/+3
|
* trylink: accomodate older versions of ldDenis Vlasenko2007-11-131-7/+18
|
* fix a problem with two different applet_name'sDenis Vlasenko2007-10-111-4/+2
|
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-4/+4
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* Move applets/applet.c into libbb, allows to get rid of --whole-archiveDenis Vlasenko2007-10-101-9/+8
| | | | | (smaller code). Tested in static and shared mode.
* trylink: s/strip/$STRIP/gDenis Vlasenko2007-10-101-3/+3
|
* trylink: trivial cleanupDenis Vlasenko2007-10-091-2/+2
|
* trylink: reformat link flags for readabilityDenis Vlasenko2007-10-091-25/+89
| | | | | | | | | | 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
* trylink: remove useless redirects, add missing error checksDenis Vlasenko2007-10-091-4/+9
|
* trylink: trivial fixesDenis Vlasenko2007-10-091-8/+4
|
* make "individual applets" build less noisy.Denis Vlasenko2007-10-081-3/+3
| | | | | add *.tmp to list of files deleted by make mrproper.
* make --help work for "individual applets" too.Denis Vlasenko2007-10-071-6/+3
|
* libbusybox: move (possibly compressed) help stuff into libbusybox.Denis Vlasenko2007-10-071-30/+9
| | | | | Makes individual binaries much smaller.
* reviving libbusybox, adding CONFIG_INDIVIDUAL part 4Denis Vlasenko2007-10-071-1/+68
|
* reviving libbusybox, adding CONFIG_INDIVIDUAL part 3Denis Vlasenko2007-10-071-19/+34
|
* reviving libbusybox, adding CONFIG_INDIVIDUAL part 2Denis Vlasenko2007-10-071-13/+15
|
* reviving libbusybox, adding CONFIG_INDIVIDUAL part 1Denis Vlasenko2007-10-071-16/+81
|
* trylink: reinstate accidentally deleted --verboseDenis Vlasenko2007-09-031-34/+17
| | | | | trylink: remove commented-out parts
* - Generally strip off -l that does not pull in a lib.Bernhard Reutner-Fischer2007-09-021-15/+11
| | | | If l_list is non-empty then add the group flags.
* - fix bug where we linked again -lm even though it is not needed.Bernhard Reutner-Fischer2007-09-021-2/+11
| | | | | | | | | 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.
* Update defconfig; fix commentsDenis Vlasenko2007-08-241-2/+1
|
* trylink: automatically use custom link script if user provides oneDenis Vlasenko2007-08-141-10/+12
| | | | | | vinfo_msg: one user (info_msg), incorporate in it *: style fixes
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-14/+27
| | | | | | | | | 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
* trylink: s/&& exit 1/|| exit 1/ (spotted by Alex Landau <landau_alex@yahoo.com>)Denis Vlasenko2007-08-061-1/+1
|
* sed: fix 'q' command handling ("Nguyen Thai Ngoc Duy" <pclouds@gmail.com>)Denis Vlasenko2007-08-061-5/+8
| | | | | | | add testsuite entry for it. Fix applet order checker. Fix cmp yelling. trylink: fix error file and map file generation applets: fix applet order
* chpasswd: fixes and code shrinkDenis Vlasenko2007-07-211-0/+2
| | | | | | | | | | | 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