Merge pull request #534 from xry111/shared_lib_interface_fix

add jansson_* to shared library exports
This commit is contained in:
Petri Lehtinen 2020-05-07 21:28:47 +03:00 committed by GitHub
commit a839d3cad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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