1
0
Files
gcc-14/debian/patches/cross-no-locale-include.diff
Konstantin Demin c2c1923c7b initial import from Debian
version: 14.3.0-5
commit: bee30ab0fff2fd6af94c62376c8aa4221bb831e0
2025-08-11 15:00:09 +03:00

18 lines
580 B
Diff

# DP: Don't add /usr/local/include for cross compilers. Assume that
# DP: /usr/include is ready for multiarch, but not /usr/local/include.
--- a/src/gcc/cppdefault.cc
+++ b/src/gcc/cppdefault.cc
@@ -66,8 +66,11 @@
#ifdef LOCAL_INCLUDE_DIR
/* /usr/local/include comes before the fixincluded header files. */
{ LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 2 },
+#if 0
+ /* Unsafe to assume that /usr/local/include is ready for multiarch. */
{ LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 0 },
#endif
+#endif
#ifdef PREFIX_INCLUDE_DIR
{ PREFIX_INCLUDE_DIR, 0, 0, 1, 0, 0 },
#endif