diff --git a/configure.ac b/configure.ac index e33ecc73..1212872a 100644 --- a/configure.ac +++ b/configure.ac @@ -59,7 +59,7 @@ if test "$DEBUG" = "yes"; then fi AC_SUBST(DEBUG_DEFINES, $debug_defines) -AX_CHECK_LINK_FLAG([-Wl,--version-script=$srcdir/src/libtpms.syms], +AX_CHECK_LINK_FLAG([-Wl,--version-script=$srcdir/src/test.syms], [have_version_script="yes"], [have_version_script="no"]) AM_CONDITIONAL([HAVE_VERSION_SCRIPT], [test "x$have_version_script" = "xyes"]) diff --git a/src/Makefile.am b/src/Makefile.am index 0e046e69..98ce0109 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -588,6 +588,7 @@ check-local: EXTRA_DIST = \ tpm12/tpm_crypto_freebl.c \ tpm12/tpm_crypto.c \ - libtpms.syms + libtpms.syms \ + test.syms CLEANFILES = a.out diff --git a/src/test.syms b/src/test.syms new file mode 100644 index 00000000..40cdd2e5 --- /dev/null +++ b/src/test.syms @@ -0,0 +1,9 @@ +# Symbol file for the linker. For testing in configure.ac only +TEST { + global: + # two work-around for a broken link + environ; + __progname; + local: + *; +};