← Commit list

df5189269

Denis Vlasenko
Denis Vlasenko
2006-10-20
FAILED Duration: 3s

Subject

Added compile-time warning for STATIC+GLIBC build

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

applets/applets.c+7 -0
@@ -17,6 +17,13 @@
#include <string.h>
#include <assert.h>
+#if ENABLE_STATIC && __GLIBC__
+#warning Static linking against glibc produces buggy executables
+#warning (glibc doesn't cope well with ld --gc-sections).
+#warning See http://sources.redhat.com/bugzilla/show_bug.cgi?id=3400
+#warning Note that glibc is utterly unsuitable for static linking anyway.
+#endif
+
#if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE
static const char usage_messages[] =
#define MAKE_USAGE