From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55068 invoked by alias); 19 Jan 2016 19:00:54 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 54983 invoked by uid 89); 19 Jan 2016 19:00:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Meanwhile, HX-Greylist:AUTH, HX-Greylist:succeeded, HX-Greylist:SMTP X-HELO: bigwig.baldwin.cx Received: from bigwig.baldwin.cx (HELO bigwig.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 19 Jan 2016 19:00:53 +0000 Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id CD03FB978; Tue, 19 Jan 2016 14:00:50 -0500 (EST) From: John Baldwin To: gdb@sourceware.org Cc: Pedro Alves Subject: Re: C++ conversion status update Date: Tue, 19 Jan 2016 19:00:00 -0000 Message-ID: <290689073.6kaHW0HruR@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <566F13D4.9000900@redhat.com> References: <565460FB.6070103@redhat.com> <86zixdnlfg.fsf@gmail.com> <566F13D4.9000900@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00032.txt.bz2 On Monday, December 14, 2015 07:09:08 PM Pedro Alves wrote: > On 12/14/2015 02:40 PM, Yao Qi wrote: > Meanwhile, I tried a few BSD hosts on the compile farm and > wrote a few patches: > > https://github.com/palves/gdb/commits/palves/cxx-conversion-netbsd > > but haven't had a moment yet to drive them to completion. I probably should sync > up with Simon though, as I think I may be duplicating work he's done already. I started doing some test builds on FreeBSD with C++ today and ran into one unexpected thing that I'm not sure how to fix. I build gdb from git on my own for testing, but the gdb package for FreeBSD users is built from FreeBSD's ports framework. The framework sets default CFLAGS / CXXFLAGS values for the ports it builds (and each port can override or adjust those as needed). However, gdb uses CFLAGS instead of CXXFLAGS when building with C++. The default flags in FreeBSD's ports infrastructure include "-std=gnu89" in the default CFLAGS (but not in CXXFLAGS since it is a C-only flag). The CXXFLAGS set in the environment when ./configure was run do not appear to be honored in the generated gdb/Makefile and also don't appear to be used during the build of gdb itself. -- John Baldwin