Add new tde_setup_architecture_flags macro

pull/1/head
Timothy Pearson 13 years ago
parent caedf8323c
commit 8e6f203f92

@ -1318,3 +1318,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