From 573e08a643bac0af91df90582638f1f765dab429 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 15 Jan 2017 14:48:09 -0800 Subject: Compile static *and* shared libraries. Test code needs to use the static libraries so that they can get access to the entire set of symbols, including private ones that are not exported. --- src/platform/posix/posix_alloc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/platform/posix/posix_alloc.c') diff --git a/src/platform/posix/posix_alloc.c b/src/platform/posix/posix_alloc.c index cce348f3..aef5bbfc 100644 --- a/src/platform/posix/posix_alloc.c +++ b/src/platform/posix/posix_alloc.c @@ -29,4 +29,9 @@ nni_free(void *ptr, size_t size) } +#else + +// Suppress empty symbols warnings in ranlib. +int nni_posix_alloc_not_used = 0; + #endif -- cgit v1.2.3-70-g09d2