From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout05.t-online.de (mailout05.t-online.de [194.25.134.82]) by sourceware.org (Postfix) with ESMTPS id 1EAC73861884 for ; Tue, 11 Aug 2020 11:19:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1EAC73861884 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=t-online.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=jens.with@t-online.de Received: from fwd25.aul.t-online.de (fwd25.aul.t-online.de [172.20.26.130]) by mailout05.t-online.de (Postfix) with SMTP id 8CF7C423DDD1 for ; Tue, 11 Aug 2020 13:19:23 +0200 (CEST) Received: from jenss-macbook-pro.fritz.box (XKh5L6Z6ohugxwRp3cSSHvY6n5RPWSi+DOsjGGitmHe-83Ul7PiN3hAG816cPMrweo@[84.151.177.13]) by fwd25.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1k5SJK-4aV1DE0; Tue, 11 Aug 2020 13:19:18 +0200 From: Jens With Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.15\)) Subject: How to reconfigure GCC 4.8.5 to use an extra hardcoded library path by default when linking? Message-Id: <6385B74B-27E6-4BDE-A1D9-4CA71948D2FF@t-online.de> Date: Tue, 11 Aug 2020 13:19:18 +0200 Cc: Jens With To: gcc-help@gcc.gnu.org X-Mailer: Apple Mail (2.3445.104.15) X-ID: XKh5L6Z6ohugxwRp3cSSHvY6n5RPWSi+DOsjGGitmHe-83Ul7PiN3hAG816cPMrweo X-TOI-EXPURGATEID: 150726::1597144758-00015F3A-F38AFFB6/0/0 CLEAN NORMAL X-TOI-MSGID: a143454e-b663-46f8-b62c-c77b17c3f645 X-Spam-Status: No, score=3.5 required=5.0 tests=BAYES_00, FREEMAIL_FROM, HTML_MESSAGE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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, 11 Aug 2020 11:19:26 -0000 I need to build and install a rather complex database application (made = up of some C-programs and web apps), w/o any resort to root access, out = of the sources including supporting OSS packages on a diversity of = operating systems.=20 If the preinstalled compilers don't fulfill the requirements of the code = to be compiled (C99, C++11, etc.), I install a private GCC 4.8.5 = including all required tools necessary to do that before building the = rest of system, because upgrading the preinstalled compilers and tools = is not an option.=20 This works quite well except the tests for gfortran which come with = libtool run into a dilemma that however environment variables I supply = for "make check" some disjoint set of tests fail. A very simple solution = is to add a runtime path for the private libdir in lib/libgfortran.spec = after installation of GCC. Because since ever (20+ years) I use my own = simple configuration tools, which implement how to build shared = libraries and to link to on the supported platforms, I could even = automate the manipulation of this file. I also know about "CC=3D$(which = gcc) LD=3D$(which ld) GCC=3Dyes with_gnu_ld=3Dyes LDFLAGS=3D sh = ./config.rpath $(sh ./config.guess)=E2=80=9C to make gcc tell me what I = need to know to manipulate the spec file. But the best solution would be = to modify and autoreconf GCC in a way that whatever the path of the = private libdir is, this path would be hardcoded in the custom built GCC.=20= I have seen some variable names with a prefix of hardcode_ in the = configure scripts, but don=E2=80=99t know how make use of these to have = at least generated a tailored fit gfortran.spec. I hope I have given given enough details to explain my problem. My dream would be a hint for simple modifications at the *.in/ac level. An idea to modify the configure script would also be very helpful. Thanks for any response! Jens=