From: Zbigniew Jędrzejewski-Szmek Date: Thu, 30 Mar 2017 01:31:21 +0000 (-0400) Subject: test-sizeof: do not link with libsystemd-shared X-Git-Tag: v234~351^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61d1a5a25c6f468aefe24f8033b779f140aab6dc;p=thirdparty%2Fsystemd.git test-sizeof: do not link with libsystemd-shared This makes it much quicker to compile. --- diff --git a/Makefile.am b/Makefile.am index 9a78488f8a8..1cc657accab 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2182,9 +2182,6 @@ test_selinux_LDADD = \ test_sizeof_SOURCES = \ src/test/test-sizeof.c -test_sizeof_LDADD = \ - libsystemd-shared.la - BUILT_SOURCES += \ src/test/test-hashmap-ordered.c diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c index 8f99a137727..7c8eac82420 100644 --- a/src/test/test-sizeof.c +++ b/src/test/test-sizeof.c @@ -17,7 +17,8 @@ along with systemd; If not, see . ***/ -#include "log.h" +#include + #include "time-util.h" /* Print information about various types. Useful when diagnosing @@ -26,10 +27,10 @@ #pragma GCC diagnostic ignored "-Wtype-limits" #define info(t) \ - log_info("%s → %zu bits%s", STRINGIFY(t), \ - sizeof(t)*CHAR_BIT, \ - strstr(STRINGIFY(t), "signed") ? "" : \ - ((t)-1 < (t)0 ? ", signed" : ", unsigned")); + printf("%s → %zu bits%s\n", STRINGIFY(t), \ + sizeof(t)*CHAR_BIT, \ + strstr(STRINGIFY(t), "signed") ? "" : \ + ((t)-1 < (t)0 ? ", signed" : ", unsigned")); int main(void) { info(char);