From b04c062aee50f456f46bf7f31641384010780791 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Wed, 24 Oct 2012 17:43:28 -0400 Subject: Support OpenBSD OpenBSD's build flags are identical to FreeBSD, except that libraries need to be explicitly linked against libc. No code changes are necessary. From: Cody Cutler --- lib/Makefile.local | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/Makefile.local b/lib/Makefile.local index 8a9aa28a..34e998f8 100644 --- a/lib/Makefile.local +++ b/lib/Makefile.local @@ -31,6 +31,9 @@ LINKER_NAME = libnotmuch.$(LIBRARY_SUFFIX) SONAME = $(LINKER_NAME).$(LIBNOTMUCH_VERSION_MAJOR) LIBNAME = $(SONAME).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE) LIBRARY_LINK_FLAG = -shared -Wl,--version-script=notmuch.sym,-soname=$(SONAME) -Wl,--no-undefined +ifeq ($(PLATFORM),OPENBSD) +LIBRARY_LINK_FLAG += -lc +endif ifeq ($(LIBDIR_IN_LDCONFIG),1) ifeq ($(DESTDIR),) LIBRARY_INSTALL_POST_COMMAND=ldconfig -- cgit v1.2.3