|
From: Tom H. <to...@co...> - 2005-11-07 19:10:51
|
In message <200...@ka...>
Greg Parker <gp...@us...> wrote:
> The following patches modify configure.in and Makefile.core.am
> for Darwin. The changes are:
>
> * make selection of valt_load_address and some CFLAGS be
> platform-based instead of CPU-based
> * add ppc32-darwin and x86-darwin to the recognized OSes and platforms
> * move -Wa,-gstabs from Makefile.core.am to configure.in because it
> doesn't work on Darwin
> * skip the glibc version check on Darwin, which doesn't use glibc
> * add HAVE_PROC config which checks for /proc/self/[fd,exe,maps],
> which don't exist on Darwin
> * add HAVE_MREMAP config which checks for mremap(), which doesn't
> exist on Darwin
> * add #defines VG_ARCH, VG_OS, and VG_PLATFORM which have the
> obvious values.
>
> My autoconf-fu isn't great, but I think these changes are clean.
> You might want to disallow configure of OS=darwin because it
> of course doesn't actually work.
Unfortunately the biarch patch that I just committed changes quite
a bit of the build system so a number of these changes aren't going
to apply any more.
The new build system does arrange for a VG_PLATFORM define though
which might be helpful.
I have also removed the -Wa,-gstabs in favour of a simple -g so that
the compiler provides an appropriate switch to the assembler which
means we'll now get DWARF on x86-linux and amd64-linux at least with
recent compilers.
The CFLAGS are now also defined on a per platform basis in the
top level Makefile.flags.am file.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|