diff --git a/configure.ac b/configure.ac index 880a756d7..557f2c9b4 100644 --- a/configure.ac +++ b/configure.ac @@ -38,6 +38,9 @@ dnl checks for libraries AC_SEARCH_LIBS([dlopen], [dl dld], [LIBRARY_DL="$LIBS";LIBS=""]) AC_SUBST(LIBRARY_DL) +AC_SEARCH_LIBS([dlsym], [dl dld], [LIBRARY_DLSYM="$LIBS";LIBS=""]) +AC_SUBST(LIBRARY_DLSYM) + PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.1.0) PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 1.1.0) diff --git a/tests/mgcp/Makefile.am b/tests/mgcp/Makefile.am index df2b7c85c..95444b58d 100644 --- a/tests/mgcp/Makefile.am +++ b/tests/mgcp/Makefile.am @@ -36,6 +36,7 @@ mgcp_test_LDADD = \ $(LIBOSMOVTY_LIBS) \ $(LIBOSMOGSM_LIBS) \ $(LIBRARY_DL) \ + $(LIBRARY_DLSYM) \ $(LIBOSMONETIF_LIBS) \ -lm \ $(NULL) diff --git a/tests/mgcp_client/Makefile.am b/tests/mgcp_client/Makefile.am index 5ce9538f7..3e4c08238 100644 --- a/tests/mgcp_client/Makefile.am +++ b/tests/mgcp_client/Makefile.am @@ -35,6 +35,7 @@ mgcp_client_test_LDADD = \ $(LIBOSMOCORE_LIBS) \ $(LIBOSMOVTY_LIBS) \ $(LIBRARY_DL) \ + $(LIBRARY_DLSYM) \ $(LIBOSMONETIF_LIBS) \ $(NULL)