Tag
Hash :
a59182c8
Author :
Date :
2001-08-11T00:30:28
* automake.in (handle_single_transform_list): Use new global, `%linkers_used', to store the linkers used, rather than an internal variable. Enables correct linker to be calculated across a group of calls to &handle_single_transform_list. Return only list of objects, since linker to be used is now externally determined. (handle_source_transform): adapted for new calling conventions of handle_single_transform_list. Calls resolve_linker() on a set of all the linkers used for any prefix, rather than for each prefix in turn. (linkers_used): New global. * tests/link_dist.test: New test. * tests/Makefile.am (TESTS): Added link_dist.test.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#! /bin/sh
# Test to make sure the linker for a dist_*_SOURCES can override that for
# *_SOURCES
# Richard Boulton <richard@tartarus.org>
. $srcdir/defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_CXX
END
cat > Makefile.am << 'END'
bin_PROGRAMS = lavalamp
lavalamp_SOURCES = lava.c
dist_lavalamp_SOURCES = lamp.cxx
END
: > lava.c
: > lamp.cxx
$ACLOCAL || exit 1
$AUTOMAKE || exit 1
# We should only see the C++ linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
grep '.\$(CXXLINK)' Makefile.in || exit 1
# We should not see these patterns:
grep '.\$(FLINK)' Makefile.in && exit 1
grep '.\$(LINK)' Makefile.in && exit 1
exit 0