diff options
author | Thomas Martitz <kugel@rockbox.org> | 2017-03-13 12:41:59 +0100 |
---|---|---|
committer | Mathieu Lirzin <mthl@gnu.org> | 2017-07-06 22:23:25 +0200 |
commit | f4e91bfc490da63209aad19636568da3b955dcd4 (patch) | |
tree | 7b4dcaa4591c8c25c13a2a20cd741d806749a27e /t/list-of-tests.mk | |
parent | c946ae6f25422d45e54de0fd69309cbb438f942d (diff) | |
download | automake-f4e91bfc490da63209aad19636568da3b955dcd4.tar.gz |
automake: Shorter object file names under subdir-objects
Combining the 'subdir-objects' option with target-specific flags had
the consequence of producing long object file names. This was done to
preventively ensure the uniqueness of object file names. We are now
using shorter names by default, and handle long names when an actual
conflict is detected. This will hopefully reduce the necessity of
using the 'prog_SHORTNAME' facility.
Example:
previously:
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS += path/to/foo
path_to_foo_CFLAGS = $(AM_CFLAGS) -g
resulted in objects:
sub/path_to_foo-foo.o
now object file name is:
sub/foo-foo.o
* bin/automake.in (proglist, liblist, ltliblist)
(dup_shortnames): New globals.
(initialize_per_input): Initialize them.
(handle_targets): New subroutine.
(handle_single_transform): Truncate object file names when possible.
* t/subobj-objname-clash.sh: New test.
* t/list-of-tests.mk (handwritten_TESTS): Add it.
* NEWS: Update.
Signed-off-by: Mathieu Lirzin <mthl@gnu.org>
Diffstat (limited to 't/list-of-tests.mk')
-rw-r--r-- | t/list-of-tests.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/list-of-tests.mk b/t/list-of-tests.mk index 15755c52b..dacdc8dd8 100644 --- a/t/list-of-tests.mk +++ b/t/list-of-tests.mk @@ -1062,6 +1062,7 @@ t/subobjname.sh \ t/subobj-clean-pr10697.sh \ t/subobj-clean-lt-pr10697.sh \ t/subobj-indir-pr13928.sh \ +t/subobj-objname-clash.sh \ t/subobj-vpath-pr13928.sh \ t/subobj-pr13928-more-langs.sh \ t/subpkg.sh \ |