Reuse of common object code from multiple clones in different dirs.

Attempt to get reuse of common object code from multiple clones in different directories.

This is a followup to issue #6805.