From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17781 invoked from network); 12 Oct 2021 00:26:21 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 12 Oct 2021 00:26:21 -0000 Received: (qmail 5630 invoked by uid 550); 12 Oct 2021 00:26:18 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 5600 invoked from network); 12 Oct 2021 00:26:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=YPZAAmm80MG3aP6Ki+3k99ebV3YcrEWuNzHLE2ae32Y=; b=nAJZ8NtbjFZnGyfzqZUYw/UL0HWcZo9RzstmAEGbMr9ssq6lQ4HJyC7mnMLb2gScnC IWGMw47h/J1CR3clAXHd9oRLL5qwEe1uAQfgAPWcKURNLMe6hdmsn5qpgFhmCiLUAxlm vcQXYg96zQi0067J/Jspq5r61PvNnWrOhVRsGTR07zNfG5EP3krHnOWwuPobUdJAbCVe fRNAGb99NGp/o1Yq8Utqe2/xEB3e5krJ8Fk3w2IAJ5JMjm/XPva+aikK33MBEm5ekT8I RAhgKVsXegaG1iszf3MMXuYVQCdK9Bl/EdB8lVEEUz5l3h3IZk3bRUDujVLwAPyNdwQF Kz4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=YPZAAmm80MG3aP6Ki+3k99ebV3YcrEWuNzHLE2ae32Y=; b=dA/QtuwzvJ63qSD7XmaU9HlyE6IJwxQ+dluhQLpDEyzScEGkPZLKsmISjx6nV6YEqZ pTervYM0Vs2unljUfUMeZmTkGOhuMcaAA/7iAk2K/NH9wUkcnM0KA2W93sUKldWTYZ9f 4UOavx/XxZIJuRG4uD2Kf4o7Ba2ZMXe3EosLnRubxlf21CPhPZrMChMV1bE/Z4N1ZAKh vSqZVUbljZ5/VFWSBoYKGvYMzI8x5ZrT+py4i3ql1GK7VmSr9jSFk5wDxa+LqQrI16zF 0IwjHZ7bviipFWsIf8+83mzdfc7KaYvSJXczteWYSKYObvUqpdLdwAiMwgmC3TmDIw2n vwOQ== X-Gm-Message-State: AOAM532ql9DtfTnAPtWqeoU/oONWuXWypY1N1MmOZTDPS09O1UYaPBOM vX/7QTVkMlw72uYnUw8EgSnYKoacqejIUdCnlYjBwJvx X-Google-Smtp-Source: ABdhPJzhaRwJfuT2QOujnRAV9+GsIJj5kGa2qOPP9oXSPuEBrHQk8DT9hWUjyoNpCBwq60zavibKEsd4c3YOPcoRgDk= X-Received: by 2002:a63:9819:: with SMTP id q25mr12204225pgd.300.1633998364965; Mon, 11 Oct 2021 17:26:04 -0700 (PDT) MIME-Version: 1.0 References: <20211011004346.13768de6@tpx.quinq.eu.org> In-Reply-To: From: Jeffrey Walton Date: Mon, 11 Oct 2021 20:24:38 -0400 Message-ID: To: musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [musl] Newbie cross compiling with LLVM On Mon, Oct 11, 2021 at 7:55 PM Matt Andrews wrote: > > >> How do I specify which linker to use? > > > >LD. Also see https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html. > > Looking at the ./configure for musl (which is not based on autoconf according to the docs), there is no mention of LD. Setting LD for ./configure and/or the call to make still results in the error. > > Who calls the linker? The compiler or make? Shouldn't clang know where it's linker is? How to tell clang which linker to use? You can have the compiler driver call the linker for you by specifying -o with an output file name. In that case, $CC or $CXX will drive the link. And in this case, your LDFLAGS should prefix options with -Wl to tell the compiler driver the option is for the linker. Jeff