Fix FTBFS with clang

pull/1/head
Alexander Golubev 11 years ago committed by Slávek Banko
parent b51b691c8b
commit 541bb2f48a

@ -1427,10 +1427,10 @@ endif( )
macro( tde_setup_architecture_flags )
message( STATUS "Detected ${CMAKE_SYSTEM_PROCESSOR} CPU architecture" )
## Immediate symbol binding is not available on ARM architectures
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES arm*)
set( LINKER_IMMEDIATE_BINDING_FLAGS "" CACHE INTERNAL "" FORCE )
else( )
## Immediate symbol binding is available only for gcc but not on ARM architectures
if( ${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" AND NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES arm* )
set( LINKER_IMMEDIATE_BINDING_FLAGS "-z\ now" CACHE INTERNAL "" FORCE )
else( )
set( LINKER_IMMEDIATE_BINDING_FLAGS "" CACHE INTERNAL "" FORCE )
endif( )
endmacro( )

Loading…
Cancel
Save