summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-12-28 17:04:42 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-12-28 17:04:42 +0000
commit3f9c84857617b0cf0d1824664e371fb6a4cac2e3 (patch)
treec073e77c0c0362246ce7eaccb3c846b15b8d2417 /applets
parentddc865fb0ddee9ed75467a164f27472c2234910a (diff)
downloadbusybox-w32-3f9c84857617b0cf0d1824664e371fb6a4cac2e3.tar.gz
busybox-w32-3f9c84857617b0cf0d1824664e371fb6a4cac2e3.tar.bz2
busybox-w32-3f9c84857617b0cf0d1824664e371fb6a4cac2e3.zip
trylink: instead of build error, disable --gc-sections if GLIBC && STATIC
nameif: glibc build fixlet
Diffstat (limited to 'applets')
-rw-r--r--applets/applets.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/applets/applets.c b/applets/applets.c
index 33951fa8f..40c482408 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -10,17 +10,6 @@
10#include <assert.h> 10#include <assert.h>
11#include "busybox.h" 11#include "busybox.h"
12 12
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 scripts/trylink and remove this warning.
21#error Aborting compilation.
22#endif
23
24#if ENABLE_BUILD_LIBBUSYBOX 13#if ENABLE_BUILD_LIBBUSYBOX
25int main(int argc, char **argv) 14int main(int argc, char **argv)
26{ 15{