mirror of https://github.com/Icinga/icinga2.git
parent
2cbc3142dc
commit
42a7ca4e78
|
@ -142,8 +142,8 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
|
||||
endif()
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data")
|
||||
endif()
|
||||
|
||||
if(ICINGA2_LTO_BUILD)
|
||||
|
|
|
@ -71,7 +71,7 @@ String Value::GetTypeName(void) const
|
|||
case ValueString:
|
||||
return "String";
|
||||
case ValueObject:
|
||||
t = static_cast<Object::Ptr>(*this)->GetReflectionType();
|
||||
t = boost::get<Object::Ptr>(m_Value)->GetReflectionType();
|
||||
if (!t) {
|
||||
if (IsObjectType<Array>())
|
||||
return "Array";
|
||||
|
@ -98,7 +98,7 @@ Type::Ptr Value::GetReflectionType(void) const
|
|||
case ValueString:
|
||||
return Type::GetByName("String");
|
||||
case ValueObject:
|
||||
return static_cast<Object::Ptr>(*this)->GetReflectionType();
|
||||
return boost::get<Object::Ptr>(m_Value)->GetReflectionType();
|
||||
default:
|
||||
return Type::Ptr();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue