diff options
author | Werner Koch <wk@gnupg.org> | 2015-09-10 18:11:58 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-09-10 18:12:20 +0200 |
commit | e92a8ab021672b19e5cd397fa555fcc8a3401e8b (patch) | |
tree | dbf55296b6539a5d0c54246d1706501949618c14 /g10/Makefile.am | |
parent | g10: Improve portability of the new test driver. (diff) | |
download | gnupg2-e92a8ab021672b19e5cd397fa555fcc8a3401e8b.tar.xz gnupg2-e92a8ab021672b19e5cd397fa555fcc8a3401e8b.zip |
g10: Fix make distcheck problem.
* g10/test.c: Include string.h.
(prepend_srcdir): New. Taken from Libgcrypt.
(test_free): New.
* g10/t-keydb.c (do_test): Malloc the filename.
* g10/Makefile.am (AM_CPPFLAGS): Remove -DSOURCE_DIR
(EXTRA_DIST): Add t-keydb-keyring.kbx.
--
Using SOURCE_DIR should in general work but we have seen problems when
doing this in Libgcrypt. Using the srcdir variable gives us anyway
more flexibility and aligns with the way we do it in tests/openpgp.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/Makefile.am')
-rw-r--r-- | g10/Makefile.am | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/Makefile.am b/g10/Makefile.am index 421870c5e..2fd52b3f7 100644 --- a/g10/Makefile.am +++ b/g10/Makefile.am @@ -19,9 +19,9 @@ ## Process this file with automake to produce Makefile.in EXTRA_DIST = options.skel distsigkey.gpg ChangeLog-2011 gpg-w32info.rc \ - gpg.w32-manifest.in test.c + gpg.w32-manifest.in test.c t-keydb-keyring.kbx -AM_CPPFLAGS = -I$(top_srcdir)/common -DSOURCE_DIR="\"$(srcdir)\"" +AM_CPPFLAGS = -I$(top_srcdir)/common include $(top_srcdir)/am/cmacros.am |