tests: dlopen does not imply availability of dlsym..

Check for both.

Change-Id: If41a20bf499f791432f5f207e40688e97fb6e9f7
This commit is contained in:
Eric Wild 2020-04-11 01:04:08 +02:00
parent 56254aaf70
commit a9a289fbd0
2 changed files with 4 additions and 0 deletions

View File

@ -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.2.0)
PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 1.2.0)

View File

@ -46,5 +46,6 @@ gbproxy_test_LDADD = \
$(LIBOSMOVTY_LIBS) \
$(LIBOSMOABIS_LIBS) \
$(LIBRARY_DL) \
$(LIBRARY_DLSYM) \
-lrt \
$(NULL)