diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2018-11-21 14:08:27 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2018-11-27 17:36:19 +0000 |
commit | 27ee1902e88a9380421cd56cecbad6ddb709d7f6 (patch) | |
tree | ebba769648aaa7c55f8fbc0a60cb8fe73b8acb86 | |
parent | 90b61261ceb4d473642e5fe806cba9efa2276b8f (diff) |
Makefile.am fixes
This patch adds the missing rules for test-strnlen and test-strrchr and
builds all the tests with _GNU_SOURCE defined.
Change-Id: Ie270bfe6ac13a86d46d4826d64a5dafa24ad7710
-rw-r--r-- | Makefile.am | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index a677e45..f2879d0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -49,7 +49,7 @@ check_PROGRAMS = \ tests/test-strnlen # Options for the tests -tests_cflags = -I$(srcdir)/tests $(AM_CFLAGS) +tests_cflags = -D_GNU_SOURCE -I$(srcdir)/tests $(AM_CFLAGS) tests_ldadd = libcortex-strings.la tests_test_memchr_LDADD = $(tests_ldadd) tests_test_memchr_CFLAGS = $(tests_cflags) @@ -71,6 +71,10 @@ tests_test_strlen_LDADD = $(tests_ldadd) tests_test_strlen_CFLAGS = $(tests_cflags) tests_test_strncmp_LDADD = $(tests_ldadd) tests_test_strncmp_CFLAGS = $(tests_cflags) +tests_test_strnlen_LDADD = $(tests_ldadd) +tests_test_strnlen_CFLAGS = $(tests_cflags) +tests_test_strrchr_LDADD = $(tests_ldadd) +tests_test_strrchr_CFLAGS = $(tests_cflags) TESTS = $(check_PROGRAMS) |