Skip to content

Commit 9cbae0e

Browse files
Begasusn0toose
andcommitted
Fix linking for libnetwork, resolves undefined references to socket and friends
Co-authored-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
1 parent 7eea3e3 commit 9cbae0e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ AM_CONDITIONAL(ENABLE_DOC, test "$enable_doc" != "no")
137137
# See if socket() is found from libsocket
138138
AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])
139139

140+
# Check for the network library.
141+
AC_CHECK_LIB(network, socket, [LIBS="$LIBS -lnetwork"])
142+
140143
# check for mq_getattr()
141144
AC_CHECK_LIB(rt, mq_getattr, [LIBS="$LIBS -lrt"])
142145

0 commit comments

Comments
 (0)