Add new tde_setup_architecture_flags macro

(cherry picked from commit 8e6f203f92)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent ae53051703
commit 8552bcafcd

@ -1235,3 +1235,17 @@ if( ${CMAKE_SOURCE_DIR} MATCHES ${CMAKE_BINARY_DIR} )
cd /tmp/${PROJECT_NAME}.build
cmake ${CMAKE_SOURCE_DIR} [arguments...]" )
endif( )
#################################################
#####
##### tde_setup_architecture_flags
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( )
set( LINKER_IMMEDIATE_BINDING_FLAGS "-z\ now" CACHE INTERNAL "" FORCE )
endif( )
endmacro( )

Loading…
Cancel
Save