add jansson_* to shared library exports

This commit is contained in:
Xℹ Ruoyao 2020-05-06 17:31:48 +08:00
parent 2882ead5bb
commit bcb6b6f3fd
2 changed files with 2 additions and 2 deletions

View File

@ -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@

View File

@ -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