From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id 05B683850434 for ; Tue, 20 Oct 2020 06:36:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 05B683850434 Received: by mail-ej1-x632.google.com with SMTP id e22so1019042ejr.4 for ; Mon, 19 Oct 2020 23:36:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=PgJkIYukYVXx78+Iru7yBCn0XA6FthuSuijarg+8y5s=; b=FvqxCs2lJ6br4nUw0YAOgwUPldgraz3GnkrYH5Z4bA1M15XQ7BWgoqj4JwXIIhm6dr C5LaFEP7q74jwLcSLCnRk6PS9KCvvtCa5n6Yt8FC4ybJYPOoKpYwIUUVNk/1QPBP4vzJ FdX+LRK9PLRPcOH2aefeG+EJmVw8rlH41cTHalJiJ/6spDV+dftro/Bxc4s3UF6K6rAu eG+zgdK5QYruSMnRcBcT5WjIN9M/xYKpdSvmuqoPtIWl4uRVkkyKCW/enxv4KMqmUO/M S40atmMgN6dD4B1sxN6zJWQIlohHZDglqt77c1CuMXzsGYCXjz3W/E4ReXNvU82+wLTt ItSA== X-Gm-Message-State: AOAM5322W4LQ8a8hCn9lw3SKw1o0gav4qqskPChPTqqpwYpLtROF0v7c k6vGQ26E571Ed31/gi+ztNf5WwCoHEyVPH6NgiR4milaCVDfcw== X-Google-Smtp-Source: ABdhPJyW1of9WclUfFBq4rnD72wFiq+L7dPHKUtLOutQ2HaPuoyetUHkpFZG+96N7jTgwAntFu/znZsdty3h0/9uNk8= X-Received: by 2002:a17:906:3559:: with SMTP id s25mr1709848eja.376.1603175776788; Mon, 19 Oct 2020 23:36:16 -0700 (PDT) MIME-Version: 1.0 From: evanation Date: Tue, 20 Oct 2020 17:36:06 +1100 Message-ID: Subject: Cross GCC (MULTILIB_OSDIRNAMES m32) To: gcc-help@gcc.gnu.org X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2020 06:36:19 -0000 If build gcc with the --with-build-sysroot=$sysroot_dir parameter, then the built gcc -m32 will look for libraries in $sysroot_dir/lib32 and $sysroot_dir/usr/lib32, if there are such directories there. But if build with the --without-headers parameter and without --with-build-sysroot then how to make the assembled gcc -m32 look in $sysroot_dir/lib32? Only edit gcc/config/i386/t-linux64 file? My building parametres: configure \ --build=$(../"$srcdir"/config.guess) \ --host=$(../"$srcdir"/config.guess) \ --target=$_target \ --prefix=$_prefix \ --with-sysroot=$_sysroot \ --with-newlib \ --disable-nls \ --enable-multilib \ --with-multilib-list=m64,m32,mx32 \ --disable-shared \ --disable-threads \ --enable-languages=c,c++ P.S. Sorry for my English