|
From: Tom H. <to...@co...> - 2009-02-06 08:32:50
|
Nicholas Nethercote wrote:
> The files that are built in the tree have names like:
> memcheck-x86-linux, libcoregrind_x86_darwin.a,
> vgpreload_memcheck-x86-darwin.so, libmpiwrap-X86_LINUX.so. But when
> installed into either .in_place or the installation directory, they
> get renamed to x86-linux/{memcheck,libcoregrind.a,vgpreload_memcheck.so,libmpiwrap.so}.
>
> This requires various pieces of appalling sed hackery at install-time.
> But I don't see any good reasons for it. I also don't see any good
> reason for the inconsistency in the original names, eg. '-' vs '_',
> caps vs. non-caps.
I suspect it's partly historical in that we decided to put each backend
in a separate directory then found that automake really wanted to
generate everything in one directory so we resorted to hackery to get
the installation to adjust things.
> I have a patch which gets rid of the platform-specific directory in
> the installation dir, and just keeps the platform-specific suffixes on
> the various files. The launcher requires minor changes to find
> things, but it's not difficult. It cuts out various horrendous parts
> of Makefile.am files, some of which are the worst lines in the entire
> build system.
Sounds reasonable to me.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|