From 218c3406ad2d9611bcb9c138be7014d24fa62caa Mon Sep 17 00:00:00 2001 From: vda Date: Fri, 20 Oct 2006 13:42:57 +0000 Subject: Added compile-time warning for STATIC+GLIBC build git-svn-id: svn://busybox.net/trunk/busybox@16413 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- applets/applets.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/applets/applets.c b/applets/applets.c index 10d4c948c..868fa50e5 100644 --- a/applets/applets.c +++ b/applets/applets.c @@ -17,6 +17,13 @@ #include #include +#if ENABLE_STATIC && __GLIBC__ +#warning Static linking against glibc produces buggy executables +#warning (glibc doesn't cope well with ld --gc-sections). +#warning See http://sources.redhat.com/bugzilla/show_bug.cgi?id=3400 +#warning Note that glibc is utterly unsuitable for static linking anyway. +#endif + #if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE static const char usage_messages[] = #define MAKE_USAGE -- cgit v1.2.3-55-g6feb