[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14441: bug in new file extensions
From: |
Felix Salfelder |
Subject: |
bug#14441: bug in new file extensions |
Date: |
Wed, 22 May 2013 21:35:14 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi there
i have discovered a bug in file extensions handling [1]. consider two
Makefile.am's (skipping hopefully unneeded information):
=== $(top_srcdir)/Makefile.am:
SUBDIRS = bug
lib_LTLIBRARIES = libone.la
libone_la_SOURCES = one.ext
.ext.cc:
#whatever
===
=== $(top_srcdir)/bug/Makefile.am:
lib_LTLIBRARIES = libtwo.la
libtwo_la_SOURCES = two.ext
.ext.c:
#whatever else
===
here, the misuse of the extension .ext is intentional. libone is meant
to be compiled from one.cc and libtwo from two.c. automake -v reports
something different.
[..]
automake: thread 0: reading Makefile.am
automake: thread 0: Sources ending in .ext become .cc
[..]
automake: thread 0: creating Makefile.in
automake: thread 0: reading bug/Makefile.am
automake: thread 0: Sources ending in .ext become .c
and then (wrong):
automake: thread 0: Sources ending in .cc become .o
automake: thread 0: Sources ending in .cc become .obj
automake: thread 0: Sources ending in .cc become .lo
automake: thread 0: creating bug/Makefile.in
[..]
within bug/Makefile.in, automake writes (wrong)
.cc.lo:
# LTCXXCOMPILE command
instead of the needed .c.lo rule.
after "touch bug/Makefile.am; make -C bug Makefile" bug/Makefile.in
correctly contains
.c.lo:
# LTCOMPILE command
instead.
i suspect there's something wrong with $extension_map scoping and
initialize_per_input, but i have no clue how to fix it. would you agree
that this is a bug?
regards
felix
PS: please CC replies to me, as i am not subscribed (yet).
[1] http://www.gnu.org/software/automake/manual/html_node/Suffixes.html
- bug#14441: bug in new file extensions,
Felix Salfelder <=
- bug#14441: bug in new file extensions, Stefano Lattarini, 2013/05/28
- bug#14441: [PATCH 0/8] Fix automake bug#14441, and related minor refactorings, Stefano Lattarini, 2013/05/28
- bug#14441: [PATCH 3/8] suffix rules: better distinction between builtin and user-derived, Stefano Lattarini, 2013/05/28
- bug#14441: [PATCH 1/8] tests: expose automake bug#14441, Stefano Lattarini, 2013/05/28
- bug#14441: [PATCH 2/8] Automake::Rule: expose suffix rules as a function, not a scalar, Stefano Lattarini, 2013/05/28
- bug#14441: [PATCH 4/8] Automake::Rule: make private variables lexically scoped, Stefano Lattarini, 2013/05/28
- bug#14441: [PATCH 6/8] Automake::Rule: rename: suffix_rule() -> next_in_suffix_chain(), Stefano Lattarini, 2013/05/28
- bug#14441: [PATCH 5/8] Automake::Rule: adjust comments and POD according to previous changes, Stefano Lattarini, 2013/05/28
- bug#14441: [PATCH 8/8] NEWS: document fix for bug#14441, Stefano Lattarini, 2013/05/28
- bug#14441: [PATCH 7/8] Automake::Rule: consistently prepend underscore to private variables, Stefano Lattarini, 2013/05/28