]> git.sur5r.net Git - i3/i3/commitdiff
configure.ac: fix AC_SEARCH_LIBS([shm_open]) for static linking (#3379)
authorMichael Stapelberg <stapelberg@users.noreply.github.com>
Fri, 31 Aug 2018 14:59:08 +0000 (08:59 -0600)
committerGitHub <noreply@github.com>
Fri, 31 Aug 2018 14:59:08 +0000 (08:59 -0600)
Without specifying -pthread, the conftest fails and -lrt is missing during
compilation of i3, resulting in a failing build.

configure.ac

index 39c228e320e3a9bd8aec9eebfc0bb4d248090090..1784fa83d0541edcc695097d9203a193d9af26c3 100644 (file)
@@ -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])]))