add && !defined(__UCLIBC__) to static link warning check
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 9 Nov 2006 00:00:12 +0000 (00:00 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 9 Nov 2006 00:00:12 +0000 (00:00 -0000)
applets/applets.c

index 18cfd57b861a1d0ec10729b16eb7588a44aac5c8..d8bb133033e3e959e650bf1c640762f5ab287b1a 100644 (file)
@@ -17,7 +17,8 @@
 #include <string.h>
 #include <assert.h>
 
-#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