From: Denis Vlasenko Date: Thu, 9 Nov 2006 00:00:12 +0000 (-0000) Subject: add && !defined(__UCLIBC__) to static link warning check X-Git-Tag: 1_4_0~409 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=07159f0f0e2188b1ce3bf7bc6b282f08986fd5ee;p=oweals%2Fbusybox.git add && !defined(__UCLIBC__) to static link warning check --- diff --git a/applets/applets.c b/applets/applets.c index 18cfd57b8..d8bb13303 100644 --- a/applets/applets.c +++ b/applets/applets.c @@ -17,7 +17,8 @@ #include #include -#if ENABLE_STATIC && defined(__GLIBC__) +/* 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 doesn't cope well with ld --gc-sections). #warning See sources.redhat.com/bugzilla/show_bug.cgi?id=3400