]> granicus.if.org Git - icinga2/commitdiff
Build fixes.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Apr 2012 09:08:33 +0000 (11:08 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Apr 2012 09:08:33 +0000 (11:08 +0200)
base/application.cpp
configrpccomponent/Makefile.am
icinga/icinga.vcxproj
jsonrpc/Makefile.am

index 2e45bbaeeb44c8f74d5e072f332081bbcfbba5f4..b125335e4f7932b4aa67b03943c8101ad14a24e1 100644 (file)
@@ -190,14 +190,7 @@ Component::Ptr Application::LoadComponent(const string& path, const ConfigObject
 #ifdef _WIN32
        HMODULE hModule = LoadLibrary(path.c_str());
 #else /* _WIN32 */
-       lt_dlhandle hModule = 0;
-       lt_dladvise advise;
-
-       if (!lt_dladvise_init(&advise) && !lt_dladvise_global(&advise)) {
-               hModule = lt_dlopenadvise(path.c_str(), advise);
-       }
-
-       lt_dladvise_destroy(&advise);
+       lt_dlhandle hModule = lt_dlopen(path.c_str());
 #endif /* _WIN32 */
 
        if (hModule == NULL)
index 001e14624028bf5ccb5a4d05f284ee94c1ab5f82..c8d85b41213425ecd1f4d26b406db3126dcdd9b2 100644 (file)
@@ -16,4 +16,5 @@ libconfigrpccomponent_la_CXXFLAGS = -I${top_srcdir}/base \
 libconfigrpccomponent_la_LDFLAGS = -module -version-info 0:0:0 -no-undefined -pthread
 libconfigrpccomponent_la_LIBADD = ${top_builddir}/base/libbase.la \
        ${top_builddir}/jsonrpc/libjsonrpc.la \
-       ${top_builddir}/cJSON/libcJSON.la
+       ${top_builddir}/cJSON/libcJSON.la \
+       ${top_builddir}/icinga/icinga
index 81cbcd9476b05f6e5242216ca2a1dd69d472d9e3..f4a0a5a09f5d714894af98517a577c60aef89cf3 100644 (file)
@@ -54,7 +54,7 @@
       </PrecompiledHeader>
       <WarningLevel>Level3</WarningLevel>
       <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>WIN32;I2_ICINGA_BUILD;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     </ClCompile>
     <Link>
       <SubSystem>Console</SubSystem>
@@ -70,7 +70,7 @@
       <Optimization>MaxSpeed</Optimization>
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <IntrinsicFunctions>true</IntrinsicFunctions>
-      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>WIN32;I2_ICINGA_BUILD;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     </ClCompile>
     <Link>
       <SubSystem>Console</SubSystem>
index 85cedf4059feca3b4e2b8bfeee2b3d6c243c7a34..feb406cacfbe317f6ad690c651597554b1677383 100644 (file)
@@ -1,7 +1,7 @@
 ## Process this file with automake to produce Makefile.in
 
 
-noinst_LTLIBRARIES =  \
+pkglib_LTLIBRARIES =  \
        libjsonrpc.la
 
 libjsonrpc_la_SOURCES =  \
@@ -15,6 +15,5 @@ libjsonrpc_la_SOURCES =  \
        netstring.cpp \
        netstring.h
 
-libjsonrpc_la_CFLAGS = -DI2_JSONRPC_BUILD
 libjsonrpc_la_CXXFLAGS = -DI2_JSONRPC_BUILD -I${top_srcdir}/base \
-       -I${top_srcdir}/cJSON
+       -I${top_srcdir}/cJSON
\ No newline at end of file