From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 18CA5383EB06 for ; Sun, 11 Dec 2022 09:52:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 18CA5383EB06 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mentor.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.96,236,1665475200"; d="scan'208,217";a="89110684" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 11 Dec 2022 01:52:53 -0800 IronPort-SDR: C+Il9983eOn3mr+/yJod499mIz3ygZtUoL9naIM2EaOSppNimh1FbAIRU0fHkZLyzCQWoLT2+r Tj1ouvqK1MyojRbQCQPdEzL8K20nmos330+1xtev04SrW2T8ccdF6ANC1rSyvffQSMhA2gAkbu qK3XM0tS/22g8fWx5u4sUt9b0CY8PfM/0o8PTkAtcgPV+b011gvmtjnZRSb3pjFQsnSbq3yKaq nENy9z63W/0IQ+dojrRHYhXd6aZqWeJZsytxPf3tNO2u17i37VDj7U5s+BXjQRXolVRYTL6H3T ly8= From: "Mahmoud, Abdulrahman (DI SW ICS MNA)" To: "gcc-help@gcc.gnu.org" Subject: Usability of --with-specs option Thread-Topic: Usability of --with-specs option Thread-Index: AdkNRM3On6UUlNP2QT2Lykfc7zjEhg== Date: Sun, 11 Dec 2022 09:52:48 +0000 Message-ID: <8923dbfa73a844ec9356821014f642d7@mentor.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.202.0.90] Content-Type: multipart/alternative; boundary="_000_8923dbfa73a844ec9356821014f642d7mentorcom_" MIME-Version: 1.0 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,HTML_MESSAGE,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --_000_8923dbfa73a844ec9356821014f642d7mentorcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am facing an issue in the GCC on ubuntu 20 as it can't find the crti.o an= d crtn.o during linking. The GCC I am using is being built on Redhat6.5 so it searches for the missi= ng files in /lib instead of /lib/x86_64-linux-gnu. I was searching for a way to configure the GCC to include the /lib/x86_64-l= inux-gnu directory in the search dirs while building on Redhat6.5. I found a configuration option called --with-specs so I was thinking I may = add this line "%:if-exists-else(crti.o /lib/x86_64-linux-gnu/crti.o)" to th= e --with-specs to be added to Startfile spec name. Is this possible with some sort of syntax and if it's not, is there any oth= er way that I can add the /lib/x86_64-linux-gnu directory to the search dir= s during the configuration? I would really appreciate your help. Thanks, Abdulrahman --_000_8923dbfa73a844ec9356821014f642d7mentorcom_--