From: Gunnar Beutner Date: Fri, 6 Apr 2012 07:18:06 +0000 (+0200) Subject: Build fix. X-Git-Tag: v0.0.1~637 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fda4f1189b3a3b968193a5eb0edbf0ba8942d7e5;p=icinga2 Build fix. --- diff --git a/base/Makefile.am b/base/Makefile.am index 34afd6292..f73a6b894 100644 --- a/base/Makefile.am +++ b/base/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in -noinst_LTLIBRARIES = \ +pkglib_LTLIBRARIES = \ libbase.la libbase_la_SOURCES = \ @@ -50,5 +50,4 @@ libbase_la_SOURCES = \ libbase_la_LIBADD=$(LIBLTDL) -libbase_la_CFLAGS=$(LTDLINCL) -DI2_BASE_BUILD -libbase_la_CXXFLAGS=$(LTDLINCL) -DI2_BASE_BUILD +libbase_la_CXXFLAGS=$(LTDLINCL) -DI2_BASE_BUILD -pthread diff --git a/base/application.cpp b/base/application.cpp index 010b95b95..2e45bbaee 100644 --- a/base/application.cpp +++ b/base/application.cpp @@ -193,7 +193,7 @@ Component::Ptr Application::LoadComponent(const string& path, const ConfigObject lt_dlhandle hModule = 0; lt_dladvise advise; - if (!lt_dladvise_init(&advise) && !lt_dladvise_local(&advise)) { + if (!lt_dladvise_init(&advise) && !lt_dladvise_global(&advise)) { hModule = lt_dlopenadvise(path.c_str(), advise); } diff --git a/icinga/Makefile.am b/icinga/Makefile.am index a6856e7da..71ae3ffb1 100644 --- a/icinga/Makefile.am +++ b/icinga/Makefile.am @@ -17,7 +17,9 @@ icinga_SOURCES = \ virtualendpoint.cpp \ virtualendpoint.h -icinga_CXXFLAGS = -I${top_srcdir}/base \ +icinga_CFLAGS = -DI2_ICINGA_BUILD + +icinga_CXXFLAGS = -DI2_ICINGA_BUILD -I${top_srcdir}/base \ -I${top_srcdir}/jsonrpc \ -I${top_srcdir}/cJSON \ -I${top_srcdir}