diff options
author | Paul Moore <paul@paul-moore.com> | 2017-02-15 17:08:51 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-02-15 17:08:51 -0500 |
commit | a90977cd9f17646280848fd2da748539f61570e1 (patch) | |
tree | b1735a16a2bd3cf4cc04665fd500b3e7c5240ca7 | |
parent | 5ba14fba2029b69845f0c44462531724043e1215 (diff) | |
download | libseccomp-a90977cd9f17646280848fd2da748539f61570e1.tar.gz |
build: restore the '-static' linker flag for the test suite
Commit a69776395367 ("build: add basic code coverage support") added
support for code coverage but removed the '-static' linker flag from
the test directory which makes debugging tests much more difficult.
Unfortunately, we can't simply restore the '-static' linker flag as
it causes problems with the code coverage tools, so make it dependent
on the '--enable-code-coverage' configure flag.
Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r-- | tests/Makefile.am | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 4fb88ce..5ce4c43 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -18,6 +18,14 @@ @CODE_COVERAGE_RULES@ +if CODE_COVERAGE_ENABLED +DBG_STATIC = +else +DBG_STATIC = -static +endif + +AM_LDFLAGS = ${DBG_STATIC} + LDADD = util.la ../src/libseccomp.la ${CODE_COVERAGE_LIBS} check_LTLIBRARIES = util.la |