aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-20 13:42:57 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-20 13:42:57 +0000
commit218c3406ad2d9611bcb9c138be7014d24fa62caa (patch)
tree44b59418644133ba8bbb274ac2297060d663200e
parent404aa1479965df0d5d019a6a14f62fa696419e4c (diff)
downloadbusybox-w32-218c3406ad2d9611bcb9c138be7014d24fa62caa.tar.gz
busybox-w32-218c3406ad2d9611bcb9c138be7014d24fa62caa.tar.bz2
busybox-w32-218c3406ad2d9611bcb9c138be7014d24fa62caa.zip
Added compile-time warning for STATIC+GLIBC build
git-svn-id: svn://busybox.net/trunk/busybox@16413 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--applets/applets.c7
1 files changed, 7 insertions, 0 deletions
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 @@
17#include <string.h> 17#include <string.h>
18#include <assert.h> 18#include <assert.h>
19 19
20#if ENABLE_STATIC && __GLIBC__
21#warning Static linking against glibc produces buggy executables
22#warning (glibc doesn't cope well with ld --gc-sections).
23#warning See http://sources.redhat.com/bugzilla/show_bug.cgi?id=3400
24#warning Note that glibc is utterly unsuitable for static linking anyway.
25#endif
26
20#if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE 27#if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE
21static const char usage_messages[] = 28static const char usage_messages[] =
22#define MAKE_USAGE 29#define MAKE_USAGE