summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-05-14 17:10:05 +0900
committerDaiki Ueno <ueno@gnu.org>2014-05-14 17:16:40 +0900
commit405226ba9be003ba692ce9ad84fabb61b1eabb5a (patch)
tree40dd471bb528a779eb4ce05bf1d38cf72cc59056
parent67ef1fd1830d962f10c2a8a38f9be65da3938eaa (diff)
downloadexternal_gettext-405226ba9be003ba692ce9ad84fabb61b1eabb5a.zip
external_gettext-405226ba9be003ba692ce9ad84fabb61b1eabb5a.tar.gz
external_gettext-405226ba9be003ba692ce9ad84fabb61b1eabb5a.tar.bz2
tests: Fix errors when CFLAGS contains --coverage
* lang-c: Supply $CFLAGS to the libtool link command. * lang-objc: Likewise.
-rw-r--r--gettext-tools/tests/ChangeLog6
-rwxr-xr-xgettext-tools/tests/lang-c2
-rwxr-xr-xgettext-tools/tests/lang-objc2
3 files changed, 8 insertions, 2 deletions
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog
index 79524ac..dc357f9 100644
--- a/gettext-tools/tests/ChangeLog
+++ b/gettext-tools/tests/ChangeLog
@@ -1,5 +1,11 @@
2014-05-14 Daiki Ueno <ueno@gnu.org>
+ tests: Fix errors when CFLAGS contains --coverage
+ * lang-c: Supply $CFLAGS to the libtool link command.
+ * lang-objc: Likewise.
+
+2014-05-14 Daiki Ueno <ueno@gnu.org>
+
msgfmt: Report error on accelerator mismatch
* msgfmt-18: New test.
* Makefile.am (TESTS): Add new test.
diff --git a/gettext-tools/tests/lang-c b/gettext-tools/tests/lang-c
index 3d7b332..f1d5b06 100755
--- a/gettext-tools/tests/lang-c
+++ b/gettext-tools/tests/lang-c
@@ -47,7 +47,7 @@ ${CC} -I../.. -I"$abs_top_srcdir"/gnulib-lib -I../../intl ${CFLAGS} \
: ${CONFIG_SHELL=${SHELL-/bin/sh}}
${CONFIG_SHELL} "$top_builddir"/libtool --quiet --tag=CC --mode=link \
- ${CC} -o l-c-prog prog.${OBJEXT} \
+ ${CC} ${CFLAGS} -o l-c-prog prog.${OBJEXT} \
../../gnulib-lib/libgettextlib.la ${LDFLAGS} ${LTLIBINTL} \
|| exit 1
diff --git a/gettext-tools/tests/lang-objc b/gettext-tools/tests/lang-objc
index c7766e4..663e525 100755
--- a/gettext-tools/tests/lang-objc
+++ b/gettext-tools/tests/lang-objc
@@ -62,7 +62,7 @@ ${CC} -I../.. -I"$abs_top_srcdir"/gnulib-lib -I../../intl ${CFLAGS} \
: ${CONFIG_SHELL=${SHELL-/bin/sh}}
${CONFIG_SHELL} "$top_builddir"/libtool --quiet --tag=CC --mode=link \
- ${CC} -o l-objc-prog prog.${OBJEXT} \
+ ${CC} ${CFLAGS} -o l-objc-prog prog.${OBJEXT} \
../../gnulib-lib/libgettextlib.la ${LDFLAGS} ${LTLIBINTL} \
|| exit 1