diff options
author | Zygmunt Krynicki <zygmunt.krynicki@canonical.com> | 2014-04-16 17:22:37 +0200 |
---|---|---|
committer | Zygmunt Krynicki <zygmunt.krynicki@canonical.com> | 2014-04-16 17:22:37 +0200 |
commit | f044b683153ac31dce2d2be64c2be7f82a2e5ac3 (patch) | |
tree | 908c31deeff18dc75b19f39c8341a1a3b20cbc33 | |
parent | 90c101ea44b91787267221e371ffec3f14d0c210 (diff) |
providers:checkbox: fix clocktest builds
This patch links clocktest with librt (for glibc < 2.17) and passes -D_POSIX_C_SOURCE=199309L per recommendations on clock_getres(2) Fixes: https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1308612 Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
-rw-r--r-- | src/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index 49d167b..2d5cb25 100644 --- a/src/Makefile +++ b/src/Makefile @@ -7,5 +7,7 @@ clean: threaded_memtest: CFLAGS += -pthread threaded_memtest: CFLAGS += -Wno-unused-but-set-variable +clocktest: CFLAGS += -D_POSIX_C_SOURCE=199309L +clocktest: LDLIBS += -lrt CFLAGS += -Wall |