2001-03-17 04:17:14 +05:30
|
|
|
/* vi: set sw=4 ts=4: */
|
|
|
|
/*
|
2007-10-10 20:11:07 +05:30
|
|
|
* Stub for linking busybox binary against libbusybox.
|
2001-03-17 04:17:14 +05:30
|
|
|
*
|
2007-11-28 12:19:03 +05:30
|
|
|
* Copyright (C) 2007 Denys Vlasenko <vda.linux@googlemail.com>
|
2001-03-17 04:17:14 +05:30
|
|
|
*
|
2007-10-10 20:11:07 +05:30
|
|
|
* Licensed under GPLv2, see file License in this tarball for details.
|
2001-03-17 04:17:14 +05:30
|
|
|
*/
|
|
|
|
|
2004-02-01 15:33:05 +05:30
|
|
|
#include <assert.h>
|
2007-02-03 22:57:14 +05:30
|
|
|
#include "busybox.h"
|
|
|
|
|
2006-11-09 05:30:12 +05:30
|
|
|
/* Apparently uclibc defines __GLIBC__ (compat trick?). Oh well. */
|
|
|
|
#if ENABLE_STATIC && defined(__GLIBC__) && !defined(__UCLIBC__)
|
2006-10-20 19:12:57 +05:30
|
|
|
#warning Static linking against glibc produces buggy executables
|
2006-11-11 04:55:53 +05:30
|
|
|
#warning (glibc does not cope well with ld --gc-sections).
|
2006-10-30 01:07:13 +05:30
|
|
|
#warning See sources.redhat.com/bugzilla/show_bug.cgi?id=3400
|
2006-12-19 03:19:06 +05:30
|
|
|
#warning Note that glibc is unsuitable for static linking anyway.
|
|
|
|
#warning If you still want to do it, remove -Wl,--gc-sections
|
2007-11-06 01:01:01 +05:30
|
|
|
#warning from scripts/trylink and remove this warning.
|
2007-05-18 13:07:06 +05:30
|
|
|
#error Aborting compilation.
|
2006-10-20 19:12:57 +05:30
|
|
|
#endif
|
|
|
|
|
2007-10-10 20:11:07 +05:30
|
|
|
#if ENABLE_BUILD_LIBBUSYBOX
|
2007-04-09 08:35:48 +05:30
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2007-10-11 15:35:36 +05:30
|
|
|
return lbb_main(argc, argv);
|
2007-04-09 08:35:48 +05:30
|
|
|
}
|
2007-10-10 20:11:07 +05:30
|
|
|
#endif
|