summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2017-03-13 12:41:59 +0100
committerMathieu Lirzin <mthl@gnu.org>2017-07-06 22:23:25 +0200
commitf4e91bfc490da63209aad19636568da3b955dcd4 (patch)
tree7b4dcaa4591c8c25c13a2a20cd741d806749a27e /NEWS
parentc946ae6f25422d45e54de0fd69309cbb438f942d (diff)
downloadautomake-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 'NEWS')
-rw-r--r--NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 5aa2c8824..5ddf6a06e 100644
--- a/NEWS
+++ b/NEWS
@@ -64,6 +64,13 @@
New in 1.16:
+* Miscellaneous changes
+
+ - When subdir-objects is in effect, Automake will now construct
+ shorter object file names when no programs and libraries name
+ clashes are encountered. This should make the discouraged use of
+ 'foo_SHORTNAME' unnecessary in many cases.
+
* Bugs fixed:
- Automatic dependency tracking has been fixed to work also when the