* symfile.c (separate_debug_file_exists): Update.
[deliverable/binutils-gdb.git] / ld / configure.in
index 160a060e6dbf807f6cd651eed24ee3ec5c272a2e..b844927d043b52671daba5f4ff5f4adb4ddb9d28 100644 (file)
@@ -124,6 +124,15 @@ AM_LC_MESSAGES
 
 AC_CONFIG_HEADERS([config.h:config.in])
 
+# PR 14072
+AH_VERBATIM([00_CONFIG_H_CHECK],
+[/* Check that config.h is #included before system headers
+   (this works only for glibc, but that should be enough).  */
+#if defined(__GLIBC__) && !defined(__CONFIG_H__)
+#  error config.h must be #included before system headers
+#endif
+#define __CONFIG_H__ 1])
+
 if test -z "$target" ; then
     AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
 fi
This page took 0.030744 seconds and 4 git commands to generate.