Skip to content

Commit aadc587

Browse files
committed
Build fixes for OpenBSD.
Fixes strophe#14. Issue discovered and fixes based on patch by Pierre-Emmanuel André.
1 parent f947136 commit aadc587

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Makefile.am

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ CFLAGS = -g -Wall
55
PARSER_CFLAGS=@PARSER_CFLAGS@
66
PARSER_LIBS=@PARSER_LIBS@
77

8+
SSL_LIBS = -lssl -lcrypto -lz
9+
810
STROPHE_FLAGS = -I$(top_srcdir)
9-
STROPHE_LIBS = libstrophe.a $(PARSER_LIBS) -lssl -lresolv
11+
STROPHE_LIBS = libstrophe.a $(PARSER_LIBS) $(SSL_LIBS)
1012

1113
## Main build targets
1214
lib_LIBRARIES = libstrophe.a

configure.ac

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fi
3535

3636
AC_MSG_NOTICE([libstrophe will use the $with_parser XML parser])
3737
AC_SEARCH_LIBS([socket], [socket])
38+
AC_SEARCH_LIBS([res_9_query], [resolv])
3839

3940
AM_CONDITIONAL([PARSER_EXPAT], [test x$with_parser != xlibxml2])
4041
AC_SUBST(PARSER_NAME)

0 commit comments

Comments
 (0)