add -lrt to DEP_LIBS if use shm_open

This commit is contained in:
Vincent Wei
2020-01-05 16:50:31 +08:00
parent 6e744641d1
commit 6aba2ed89b
+2 -2
View File
@@ -1738,8 +1738,8 @@ case "$runtime_mode" in
fi
if test "x$use_shmopen" = "xyes"; then
AC_CHECK_LIB(rt, shm_open, ,
use_shmopen="no; shm_open function not found in rt library")
AC_CHECK_LIB(rt, shm_open, [DEP_LIBS="$DEP_LIBS -lrt"],
[use_shmopen="no; shm_open function not found in rt library"])
fi
if test "x$use_shmopen" = "xyes"; then