From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67328 invoked by alias); 20 Sep 2017 01:42:52 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 67311 invoked by uid 89); 20 Sep 2017 01:42:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1102 X-HELO: mail-yw0-f175.google.com Received: from mail-yw0-f175.google.com (HELO mail-yw0-f175.google.com) (209.85.161.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Sep 2017 01:42:50 +0000 Received: by mail-yw0-f175.google.com with SMTP id t127so957080ywg.4 for ; Tue, 19 Sep 2017 18:42:50 -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:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Ea8PFX2nnCpHnkdw+0NCqokDj5qevTPS2kks8B/bjFQ=; b=IInDpldyJmjP+zurvRjaWam5CGMAwBXKBIz/60b7r1FdA2R1dekiCuUHZWjnSBHHlf pezRNsFAzYsNGvxTSNiVdRiVTe+ShbzO/L39O5+NeMXS1u3KzZuAjXSWVQPDmAgXVzsh BoYt8PsQcpoyd0LAfdMfgsQPNcntoGoUYC/kxokaO8ljpgIi6qg/x1UropQlT6fL6mhO 3UH9xEVZm9QIPnYGaXdbFAEcKhVUfNb56lPsV8joEzruJw7gDZP77SEe38oNGJUurvIV nVApROwqs/79DKF0qRI87CYrLnumAthyhePmSWMUi1LgQcwtN1C1iHxXsnjuf3YT5d5y oqSQ== X-Gm-Message-State: AHPjjUixqpyvn4cBAVqndxWaTlz5zxmQi1KceaYywF48Dp20IniDgQiW 4qC8ElMDuTT4ILxtPUI5bNhZH7WQo+AGF2N6ZKo= X-Google-Smtp-Source: AOwi7QBwgvI1meCqoqNJg7BTmaweqtk1lP/HcfPnYCAffpzF6HkRozJqw35YjkFdvXiONwZaUgGKHOjFOEkjfMEMSFQ= X-Received: by 10.129.86.212 with SMTP id k203mr2607632ywb.155.1505871768689; Tue, 19 Sep 2017 18:42:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.131.138 with HTTP; Tue, 19 Sep 2017 18:42:48 -0700 (PDT) In-Reply-To: <45c82e04-8224-0ff7-1a36-01b14b088fb1@symas.com> References: <53b8973b-40a4-2550-3307-66d7f13707d5@symas.com> <45c82e04-8224-0ff7-1a36-01b14b088fb1@symas.com> From: R0b0t1 Date: Wed, 20 Sep 2017 01:42:00 -0000 Message-ID: Subject: Re: dependency list for static libraries To: Howard Chu Cc: Simon Richter , binutils@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00172.txt.bz2 On Tue, Sep 19, 2017 at 11:03 AM, Howard Chu wrote: > Simon Richter wrote: >> >> Hi, >> >> On 19.09.2017 17:49, Howard Chu wrote: >> >>> We often get link errors when switching from dynamic linking to static >>> linking, because dynamic libraries list all of their own dependency >>> libraries, and static libraries don't. (And the program being linked >>> doesn't know about those indirect dependencies.) >> >> >> That is what libtool's .la files do =E2=80=94 these have a list of extra >> dependencies to be linked when linking statically. > > > Libtool files are a poor solution and an additional admin overhead. To add to this, though it may not be extremely relevant, there are a lot of automake tests that seem to be broken for unknown reasons during cross-compilation. Binutils itself doesn't use any broken tests (last I checked), but if one tries to cross-compile an entire GNU/Linux distribution it is likely that the problem will manifest itself. It seems like the best way to avoid this is to avoid using the autotools. Cheers, R0b0t1