aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2020-05-07 21:28:47 +0300
committerGitHub <noreply@github.com>2020-05-07 21:28:47 +0300
commita839d3cad6fe2c072d45101fe30294b2346ed065 (patch)
treebc2cb6ec6dc802be98b895a40544b6863d33dd05
parent2882ead5bb90cf12a01b07b2c2361e24960fae02 (diff)
parentbcb6b6f3fde24883c9ee1dc40deef69818e19307 (diff)
downloadjansson-a839d3cad6fe2c072d45101fe30294b2346ed065.zip
jansson-a839d3cad6fe2c072d45101fe30294b2346ed065.tar.gz
jansson-a839d3cad6fe2c072d45101fe30294b2346ed065.tar.bz2
Merge pull request #534 from xry111/shared_lib_interface_fix
add jansson_* to shared library exports
-rw-r--r--src/Makefile.am2
-rwxr-xr-xtest/suites/api/check-exports2
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