From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by sourceware.org (Postfix) with ESMTPS id 2E7D63858D33 for ; Sat, 20 Mar 2021 20:47:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2E7D63858D33 Received: by mail-qk1-x730.google.com with SMTP id q26so1421667qkm.6 for ; Sat, 20 Mar 2021 13:47:04 -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:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=yHkTh5onObIAb9TrvCPb3U8YOASJqLN1xbMvr3yLcss=; b=dwng5SJmrtUTZfXHtta6FNSub+4+NLgQycUOypNqrbntO5vresmx8YyVf2JdNjAJfi T/rhwrIlM/U6elP1DdqPyIeVNnEC2C1z28lauzmBb4vhA+JILfbV0k3EtJvdBpHctZeG rQNr3ty5izgPxgaPpvYlgKPq1AnM0tE/Ty7dDnZODJ6jbSe6m9v+9GCVmLiv8U3KaEn2 pMbn4IYSZH5ONsgDldedLC3S4RwLMQeWbSiVn9nZbp/b9gHDR1cWJqagKrORHbzXvY5K JXGCCXHlb4rnLhGUG6UnGL8U2uBpm3KGchMsOV3GtqBM5AK18YQaxNAbYJ8hPjHCsl+r dNag== X-Gm-Message-State: AOAM532iY6v1+AcifYN9DXpUa5KgvsH6Zz072tkMhCh0WTXfFAnIsB5t DImmLmoM8U2ITGgo98fOi62wfOBRIcnxjINcM9s= X-Google-Smtp-Source: ABdhPJzK5ej+xIiRog7HbXwsnptE4rMU7u0Cq+8o0MLJpqNthucb2NWbU6IAL6nlz/djurvcI/b6u5n2fObBa65NPb0= X-Received: by 2002:a37:dcb:: with SMTP id 194mr4581825qkn.4.1616273223793; Sat, 20 Mar 2021 13:47:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6214:15d3:0:0:0:0 with HTTP; Sat, 20 Mar 2021 13:47:03 -0700 (PDT) Reply-To: feenberg@nber.org In-Reply-To: <3CB88FD5-29C9-48B1-83B7-3E852A8D1029@googlemail.com> References: <73d99495-1edf-9c54-ad8d-5db0c5e0dafd@nber.org> <3CB88FD5-29C9-48B1-83B7-3E852A8D1029@googlemail.com> From: Daniel Feenberg Date: Sat, 20 Mar 2021 16:47:03 -0400 Message-ID: Subject: Re: gfortran static linking under OS X (was: Re: ) To: Iain Sandoe Cc: Tobias Burnus , Fortran List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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 X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2021 20:47:05 -0000 On 3/19/21, Iain Sandoe wrote: >> On Fri, 19 Mar 2021, Tobias Burnus wrote: > > you should be able to work around this without changing the compiler or > rebuilding it, > > find > > /path/to/compiler/install/lib/libgfortran.spec > > make a copy of that (for backup only) > > the file contains something like: > > # > # This spec file is read by gfortran when linking. > # It is used to specify the libraries we need to link in, in the right > # order. > # > > %rename lib liborig > *lib: -lquadmath -lm %(libgcc) %(liborig) > > change the last line line to : > > *lib: %{!static-libgfortran: -lquadmath } %{static-libgfortran: > libquadmath.a%s} %(libgcc) %(liborig) > > === > > and try your link again > Tried that, the error message is: ld: library not found for -lSystem Indeed there is no libsystem.a anywhere on the computer. Any ideas? Daniel Feenberg