mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-21 01:40:57 +08:00
tests: avoid localization failure due to unstable compiler messages.
* tests/testsuite.at (LT_AT_NORMALIZE_COMPILER_OUTPUT): Attempt to normalize temporary file names in error messages. Fixes 'localized compiler messages' test failure on Darwin when creating fat (multi-ABI) libraries. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
parent
72064249b2
commit
3d4f9e3245
@ -1,3 +1,11 @@
|
||||
2010-09-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
tests: avoid localization failure due to unstable compiler messages.
|
||||
* tests/testsuite.at (LT_AT_NORMALIZE_COMPILER_OUTPUT):
|
||||
Attempt to normalize temporary file names in error messages.
|
||||
Fixes 'localized compiler messages' test failure on Darwin when
|
||||
creating fat (multi-ABI) libraries.
|
||||
|
||||
2010-09-13 Peter Rosin <peda@lysator.liu.se>
|
||||
|
||||
Prefer $NM @file when the toolchain isn't native to $build.
|
||||
|
@ -240,10 +240,13 @@ esac])
|
||||
# - distcc process numbers,
|
||||
# - ccache file location,
|
||||
# - newline encoding,
|
||||
# - location of the libtool script.
|
||||
# - location of the libtool script,
|
||||
# - error messages involving unstable temporary file names.
|
||||
m4_define([LT_AT_NORMALIZE_COMPILER_OUTPUT],
|
||||
[_ltbase=`$ECHO "$LIBTOOL" | sed 's,^.*/,,'`
|
||||
[sed "/^distcc\[[0-9]*\]/d; /^$_ltbase: compile/d" < $1 > $1.t]
|
||||
[sed "/^distcc\[[0-9]*\]/d
|
||||
/^$_ltbase: compile/d
|
||||
s/\(tmp\/\{1,\}cc\)\([a-zA-Z0-9_]\{1,\}\)/\1-normalized-tmpname/g" < $1 > $1.t]
|
||||
LT_AT_UNIFY_NL([$1.t], [m4_default([$2], [$1])])[]dnl
|
||||
])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user