From aadc58711b57773ca8a7e85a81d2bd81cb3233db Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Wed, 8 Feb 2012 22:00:06 -0700 Subject: [PATCH] Build fixes for OpenBSD. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #14. Issue discovered and fixes based on patch by Pierre-Emmanuel André. --- Makefile.am | 4 +++- configure.ac | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 742137c..788d37c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,8 +5,10 @@ CFLAGS = -g -Wall PARSER_CFLAGS=@PARSER_CFLAGS@ PARSER_LIBS=@PARSER_LIBS@ +SSL_LIBS = -lssl -lcrypto -lz + STROPHE_FLAGS = -I$(top_srcdir) -STROPHE_LIBS = libstrophe.a $(PARSER_LIBS) -lssl -lresolv +STROPHE_LIBS = libstrophe.a $(PARSER_LIBS) $(SSL_LIBS) ## Main build targets lib_LIBRARIES = libstrophe.a diff --git a/configure.ac b/configure.ac index ca7e53e..7b9797c 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,7 @@ fi AC_MSG_NOTICE([libstrophe will use the $with_parser XML parser]) AC_SEARCH_LIBS([socket], [socket]) +AC_SEARCH_LIBS([res_9_query], [resolv]) AM_CONDITIONAL([PARSER_EXPAT], [test x$with_parser != xlibxml2]) AC_SUBST(PARSER_NAME)