From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61563 invoked by alias); 22 Apr 2017 04:17:44 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 53019 invoked by uid 89); 22 Apr 2017 04:17:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=emails, our, person X-HELO: nm26-vm4.access.bullet.mail.gq1.yahoo.com Received: from nm26-vm4.access.bullet.mail.gq1.yahoo.com (HELO nm26-vm4.access.bullet.mail.gq1.yahoo.com) (216.39.63.114) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 22 Apr 2017 04:17:00 +0000 Received: from [216.39.60.171] by nm26.access.bullet.mail.gq1.yahoo.com with NNFMP; 21 Apr 2017 16:16:46 -0000 Received: from [98.138.104.99] by tm7.access.bullet.mail.gq1.yahoo.com with NNFMP; 21 Apr 2017 16:16:46 -0000 Received: from [127.0.0.1] by smtp119.sbc.mail.ne1.yahoo.com with NNFMP; 21 Apr 2017 16:16:46 -0000 X-Yahoo-SMTP: 0h0Q7euswBD_g.kcEqbzJWRFfrba801gq1M1 Subject: Re: canadian build for mingw host: patch for gettext 0.19.8.1 To: Titus von Boxberg References: Cc: crossgcc maillist From: Alexey Neyman Message-ID: Date: Sat, 22 Apr 2017 04:17:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00025.txt.bz2 [CC crossgcc list] Hi Titus, First off, please send the emails the crossgcc mailing list, not to me personally - I may not be the only person interested in a certain patch, etc. On 04/21/2017 04:12 AM, Titus von Boxberg wrote: > Hi Alexey, > > I had to use the patch below to let ct-ng build gettext 0.19.8.1 for host mingw. > > I don't use mingw nor gettext at all (besides for running a cross gcc on windows), > so I don't really understand why it's required (or rather why mingw defines asprintf). asprintf is more or less common function now. Can you describe how you set up the mingw host? I'd like to add it to our docs and add that to our testing regimen. As to the patch itself, what was the problem with using asprintf from mingw's libraries? A build log fragment would be helpful. > I took the idea for the patch from > https://lists.freedesktop.org/archives/gstreamer-commits/2015-November/090748.html > > Second, it looks strange to me that gettext is built at all for the host. > gettext is _NEEDED by glibc. It is needed to enable localization in the toolchain components. I haven't tested that area much myself, though. And, I think you got it exactly the other way. gettext is not *needed* by glibc, it is *a part of glibc*. We only build it for *non-glibc* hosts/targets. > For the target: OK, may it be so. But why for the host? glibc shouldn't have > anything to do with the host? Is that correct? Hint: not all our supported hosts are glibc-based. If you look at the build script, you'll notice that gettext is skipped if the host is *-linux-gnu*. Regards, Alexey.