mirror of https://github.com/Icinga/icinga2.git
Add right lib dir to the search path.
This commit is contained in:
parent
d6874052c6
commit
5157853af9
|
@ -17,7 +17,8 @@ icinga2_CPPFLAGS = \
|
|||
-I${top_srcdir}/lib/config \
|
||||
-I${top_srcdir}/lib/remoting \
|
||||
-I${top_srcdir}/lib/icinga \
|
||||
-I${top_srcdir}
|
||||
-I${top_srcdir} \
|
||||
-DICINGA_LIBDIR="\"$(pkglibdir)\""
|
||||
|
||||
icinga2_LDFLAGS = \
|
||||
$(BOOST_LDFLAGS)
|
||||
|
|
|
@ -66,6 +66,10 @@ int main(int argc, char **argv)
|
|||
Component::AddSearchDir(exeDirectory + "/../lib/icinga2");
|
||||
Component::AddSearchDir(exeDirectory + "/../lib64/icinga2");
|
||||
|
||||
#ifdef ICINGA_LIBDIR
|
||||
Component::AddSearchDir(ICINGA_LIBDIR);
|
||||
#endif /* ICINGA_LIBDIR */
|
||||
|
||||
DynamicObject::BeginTx();
|
||||
|
||||
/* load config file */
|
||||
|
|
Loading…
Reference in New Issue