From 83adabfa3e7869ca73f2e245dd14ee48356b6d9d Mon Sep 17 00:00:00 2001 From: Stéphane Raimbault Date: Mon, 9 Apr 2012 23:51:13 +0200 Subject: [PATCH] Add -lsocket to compile on QNX --- configure.ac | 4 ++++ src/Makefile.am | 4 ++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index d418ff7..3cf728b 100644 --- a/configure.ac +++ b/configure.ac @@ -54,8 +54,12 @@ case "${host_os}" in *mingw32*) os_win32="true" ;; + *nto-qnx*) + os_qnx="true" + ;; esac AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "true") +AM_CONDITIONAL(OS_QNX, test "$os_qnx" = "true") # Checks for programs. AC_PROG_CC diff --git a/src/Makefile.am b/src/Makefile.am index 5ef1465..7886787 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -16,6 +16,10 @@ if OS_WIN32 libmodbus_la_LIBADD = -lwsock32 endif +if OS_QNX +libmodbus_la_LIBADD = -lsocket +endif + libmodbus_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined -version-info $(LIBMODBUS_LT_VERSION_INFO) # Header files to install -- libgit2 0.21.4