X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=applets%2Fapplets.c;h=98c2b44f5c803bcb32ffa3f1359ea89e1142ae88;hb=5f7c82b32f548b5a1d6a4186630e8ef496a9d5e6;hp=bbf150c7982495d10eac51e3fa85c95f701cb711;hpb=724d196c75e097535d475528002518d5322868c6;p=oweals%2Fbusybox.git diff --git a/applets/applets.c b/applets/applets.c index bbf150c79..98c2b44f5 100644 --- a/applets/applets.c +++ b/applets/applets.c @@ -2,28 +2,15 @@ /* * Stub for linking busybox binary against libbusybox. * - * Copyright (C) 2007 Denis Vlasenko + * Copyright (C) 2007 Denys Vlasenko * - * Licensed under GPLv2, see file License in this tarball for details. + * Licensed under GPLv2, see file LICENSE in this source tree. */ - -#include #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 top-level Makefile and remove this warning. -#error Aborting compilation. -#endif - #if ENABLE_BUILD_LIBBUSYBOX -int main(int argc, char **argv) +int main(int argc UNUSED_PARAM, char **argv) { - return libbusybox_main(argc, argv); + return lbb_main(argv); } #endif