1 /* vi: set sw=4 ts=4: */
3 * Stub for linking busybox binary against libbusybox.
5 * Copyright (C) 2007 Denis Vlasenko
7 * Licensed under GPLv2, see file License in this tarball for details.
13 /* Apparently uclibc defines __GLIBC__ (compat trick?). Oh well. */
14 #if ENABLE_STATIC && defined(__GLIBC__) && !defined(__UCLIBC__)
15 #warning Static linking against glibc produces buggy executables
16 #warning (glibc does not cope well with ld --gc-sections).
17 #warning See sources.redhat.com/bugzilla/show_bug.cgi?id=3400
18 #warning Note that glibc is unsuitable for static linking anyway.
19 #warning If you still want to do it, remove -Wl,--gc-sections
20 #warning from top-level Makefile and remove this warning.
21 #error Aborting compilation.
24 #if ENABLE_BUILD_LIBBUSYBOX
25 int main(int argc, char **argv)
27 return libbusybox_main(argc, argv);