A bunch of defined(__GLIBC__) added. static-linking warning expanded

This commit is contained in:
Denis Vlasenko
2006-12-18 21:49:06 +00:00
parent f42ff90453
commit 83e5d6f772
13 changed files with 14 additions and 24 deletions

View File

@ -13,8 +13,6 @@
*/
#include "busybox.h"
#include <unistd.h>
#include <string.h>
#include <assert.h>
/* Apparently uclibc defines __GLIBC__ (compat trick?). Oh well. */
@ -22,7 +20,9 @@
#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 utterly unsuitable for static linking anyway.
#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.
#endif
#if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE