From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14237 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Reinoud Koornstra Newsgroups: gmane.linux.lib.musl.general Subject: Re: where to find musl-gcc wrapper script Date: Mon, 17 Jun 2019 19:30:00 -0700 Message-ID: References: <20190617233023.GK1506@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="269251"; mail-complaints-to="usenet@blaine.gmane.org" Cc: musl@lists.openwall.com To: Rich Felker Original-X-From: musl-return-14253-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jun 18 04:30:27 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hd3tC-0017vF-Lp for gllmg-musl@m.gmane.org; Tue, 18 Jun 2019 04:30:26 +0200 Original-Received: (qmail 11267 invoked by uid 550); 18 Jun 2019 02:30:24 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 10201 invoked from network); 18 Jun 2019 02:30:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WQQtNbyi/yU7IrrpF3jd2TvoYGGDxFN8h96ZBk6w/zU=; b=PHVVPzrBn1IlWpNF+GOBkBRhptDaRNV654xs4gWVsL3UNUhAFqjFZDVfZPEKRyQfTe sHZ6psdgK1iMiBzGwr4yaW53pxgrOgkShvnOj/h2zEeLL2de6xu80H0VSTYCfMIvGJg/ kM2sOCAzHblPQ+RQsDQVMyhX3MGqm8oCIiMVFXJYbPohtZUik4lXa62UWF7Wgqp43cA3 eW7pDwqB7VQo0o6xwOuHEutSVWWd9YfzQkbO7XlDCnck8MvthqUeEUuNGpB2TJNZ31cG PhWM+SRwAgoQzVr4ELcgg645MTbszgW2qXdtDbMgv8wDc4NodsEqvkppIFbbFyMnkvUS E6yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WQQtNbyi/yU7IrrpF3jd2TvoYGGDxFN8h96ZBk6w/zU=; b=S5RfgDM4jibhlm1gBP1ZVBV6XMpAhxatsyxadUjwBSdFfzQ4186V8voB/pS8urezMP rDfrB0zx0mzUrm0FKqmzuqlQGjdmtPtBqUo5Gi0WNps4ZvG03YRwqNcjrJSD3PrVDTiS JjlCTFPuD0/gj4pMv7W4dwhC5WrCd3HbjPncX2c3qP2OUZ+NHE2oB+JfvM9cgWYsFOEH fuuagDALpNO2wRFiu2GhXA6dZ+ozj/k5PomthencD74s+GIRfuq14Q2MsFpe72R3z1Go qhNqKbDAxn77ecaFztMjpMcTiGj0juLuPff1pFur6hb0HVFk7wDHGJLVDuGnrNpFnLk9 cGaQ== X-Gm-Message-State: APjAAAWSl7hLKzlH2cI5G0wKfhERpqW5v7aNMGUsXYfBazrqMIhbncwT K5z2vbuXjYye9+QcYhtK62PlZe8EKt42EKHIlKc= X-Google-Smtp-Source: APXvYqxbRJYVWAPeyLNtadzbC/SA8AjDgr+Po+G7vvsJ25mcCFK1BbgFx+P2bMwFqLF+F4WcEAFAREXb5U9eZlR30kk= X-Received: by 2002:a9d:6a19:: with SMTP id g25mr223257otn.77.1560825011703; Mon, 17 Jun 2019 19:30:11 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:14237 Archived-At: Ok the wrapper is included in the musl library itself in the obj directory. c++ isn't supported yet? Currently I configure with CC=musl-gcc CFLAGS="-I/home/me/MUSL/include" LDFLAGS="-L/home/me/lib" ./configure the final g++ comand also add -lrt, need more changes for this to work? Thanks, Reinoud. On Mon, Jun 17, 2019 at 5:54 PM Reinoud Koornstra wrote: > > In this case, my application is simple, I need to compile and > application against musl, instead of glibc. > I do not need to musl compiled gcc for this? > Thanks, > Reinoud. > > On Mon, Jun 17, 2019 at 4:30 PM Rich Felker wrote: > > > > On Mon, Jun 17, 2019 at 03:49:19PM -0700, Reinoud Koornstra wrote: > > > Hello Everyone, > > > I did get the sources and build from musl-cross-gcc at github.com. > > > Building works fine, however, I cannot find the musl-gcc script to compile. > > > > The musl-gcc wrapper script is for repurposing an existing host > > toolchain for a different libc (glibc) to use it with musl. You don't > > use it with a proper cross compiler toolchain or on a musl-native > > system. The output of musl-cross-make will be a set of utilities > > prefixed with the target tuple, e.g. x86_64-linux-musl-gcc, etc., in > > the bin directory under wherever you installed the cross toolchain. > > > > Rich