From 3f9c84857617b0cf0d1824664e371fb6a4cac2e3 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 28 Dec 2007 17:04:42 +0000 Subject: trylink: instead of build error, disable --gc-sections if GLIBC && STATIC nameif: glibc build fixlet --- applets/applets.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'applets') diff --git a/applets/applets.c b/applets/applets.c index 33951fa..40c4824 100644 --- a/applets/applets.c +++ b/applets/applets.c @@ -10,17 +10,6 @@ #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 scripts/trylink and remove this warning. -#error Aborting compilation. -#endif - #if ENABLE_BUILD_LIBBUSYBOX int main(int argc, char **argv) { -- cgit v1.1