From bcb6b6f3fde24883c9ee1dc40deef69818e19307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=E2=84=B9=20Ruoyao?= Date: Wed, 6 May 2020 17:31:48 +0800 Subject: [PATCH] add jansson_* to shared library exports --- src/Makefile.am | 2 +- test/suites/api/check-exports | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 018262e..2926172 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -24,6 +24,6 @@ libjansson_la_SOURCES = \ version.c libjansson_la_LDFLAGS = \ -no-undefined \ - -export-symbols-regex '^json_' \ + -export-symbols-regex '^json_|^jansson_' \ -version-info 16:0:12 \ @JSON_BSYMBOLIC_LDFLAGS@ diff --git a/test/suites/api/check-exports b/test/suites/api/check-exports index 9adca7d..2b6b3c7 100755 --- a/test/suites/api/check-exports +++ b/test/suites/api/check-exports @@ -7,7 +7,7 @@ SOFILE="../src/.libs/libjansson.so" # The list of symbols, which the shared object should export, is read # from the def file, which is used in Windows builds -grep 'json_' $top_srcdir/src/jansson.def \ +grep 'json_\|jansson_' $top_srcdir/src/jansson.def \ | sed -e 's/ //g' \ | sort \ >$test_log/exports