From 09683d21a93345fcb5bc3ca10bb52e14dcb484b5 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 31 Aug 2018 08:59:08 -0600 Subject: [PATCH] configure.ac: fix AC_SEARCH_LIBS([shm_open]) for static linking (#3379) Without specifying -pthread, the conftest fails and -lrt is missing during compilation of i3, resulting in a failing build. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 39c228e3..1784fa83 100644 --- a/configure.ac +++ b/configure.ac @@ -81,7 +81,7 @@ AC_SEARCH_LIBS([floor], [m], , [AC_MSG_FAILURE([cannot find the required floor() # libev does not ship with a pkg-config file :(. AC_SEARCH_LIBS([ev_run], [ev], , [AC_MSG_FAILURE([cannot find the required ev_run() function despite trying to link with -lev])]) -AC_SEARCH_LIBS([shm_open], [rt]) +AC_SEARCH_LIBS([shm_open], [rt], [], [], [-pthread]) AC_SEARCH_LIBS([iconv_open], [iconv], , AC_SEARCH_LIBS([libiconv_open], [iconv], , [AC_MSG_FAILURE([cannot find the required iconv_open() function despite trying to link with -liconv])])) -- 2.39.5