aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXℹ Ruoyao <xry111@mengyan1223.wang>2020-05-06 17:31:48 +0800
committerXℹ Ruoyao <xry111@mengyan1223.wang>2020-05-06 17:31:48 +0800
commitbcb6b6f3fde24883c9ee1dc40deef69818e19307 (patch)
treebc2cb6ec6dc802be98b895a40544b6863d33dd05
parent2882ead5bb90cf12a01b07b2c2361e24960fae02 (diff)
downloadjansson-bcb6b6f3fde24883c9ee1dc40deef69818e19307.zip
jansson-bcb6b6f3fde24883c9ee1dc40deef69818e19307.tar.gz
jansson-bcb6b6f3fde24883c9ee1dc40deef69818e19307.tar.bz2
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