This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: C++ conversion status update
- From: John Baldwin <jhb at freebsd dot org>
- To: gdb at sourceware dot org
- Cc: Pedro Alves <palves at redhat dot com>
- Date: Tue, 19 Jan 2016 11:00:42 -0800
- Subject: Re: C++ conversion status update
- Authentication-results: sourceware.org; auth=none
- References: <565460FB dot 6070103 at redhat dot com> <86zixdnlfg dot fsf at gmail dot com> <566F13D4 dot 9000900 at redhat dot com>
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