mirror of
https://github.com/sheumann/hush.git
synced 2024-08-18 06:29:11 +00:00
Should be a big win for libbusybox. busybox wins too: text data bss dec hex filename 776524 929 9100 786553 c0079 busybox_old 775903 929 9100 785932 bfe0c busybox_unstripped
30 lines
910 B
C
30 lines
910 B
C
/* vi: set sw=4 ts=4: */
|
|
/*
|
|
* Stub for linking busybox binary against libbusybox.
|
|
*
|
|
* Copyright (C) 2007 Denys Vlasenko <vda.linux@googlemail.com>
|
|
*
|
|
* Licensed under GPLv2, see file License in this tarball for details.
|
|
*/
|
|
|
|
#include <assert.h>
|
|
#include "busybox.h"
|
|
|
|
/* Apparently uclibc defines __GLIBC__ (compat trick?). Oh well. */
|
|
#if ENABLE_STATIC && defined(__GLIBC__) && !defined(__UCLIBC__)
|
|
#warning Static linking against glibc produces buggy executables
|
|
#warning (glibc does not cope well with ld --gc-sections).
|
|
#warning See sources.redhat.com/bugzilla/show_bug.cgi?id=3400
|
|
#warning Note that glibc is unsuitable for static linking anyway.
|
|
#warning If you still want to do it, remove -Wl,--gc-sections
|
|
#warning from scripts/trylink and remove this warning.
|
|
#error Aborting compilation.
|
|
#endif
|
|
|
|
#if ENABLE_BUILD_LIBBUSYBOX
|
|
int main(int argc, char **argv)
|
|
{
|
|
return lbb_main(argc, argv);
|
|
}
|
|
#endif
|