crosstool-ng-pq / 3082.diff

# HG changeset patch
# User Cody Schafer <>
# Date 1348521141 25200
# Node ID de4f2cc98766248c1cc8bc83e672f564c5009a96
# Parent  c130666cbf166e2be70125049b94b1b982eaf7c1
fix multilib for broken gcc configure

gcc's configure passes the --enable-multilib flags into target builds, which
breaks things (like zlib when using the bundled one).

Workaround by only passing the explicit --disable-multilib and omitting
--enable-multilib. According to the gcc bug report on this problem, all
platforms that use multilib enable it by default, so we can safely omit the
--enable-multilib and get a multilib toolchain.

diff -r c130666cbf16 -r de4f2cc98766 scripts/build/cc/
--- a/scripts/build/cc/	Thu Jun 28 13:48:45 2012 -0700
+++ b/scripts/build/cc/	Mon Sep 24 14:12:21 2012 -0700
@@ -349,9 +349,7 @@
-    if [ "${CT_MULTILIB}" = "y" ]; then
-        extra_config+=("--enable-multilib")
-    else
+    if [ "${CT_MULTILIB}" = "n" ]; then
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.