Warn and disable dynamic_arch when not supported on the architecture

This commit is contained in:
Martin Kroeker 2019-06-25 20:03:26 +02:00 committed by GitHub
parent b11f0b6a70
commit c379ea73b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -199,12 +199,15 @@ if (NEED_PIC)
endif()
endif ()
if (X86 OR X86_64 OR ARM64 OR PPC)
if (DYNAMIC_ARCH)
if (DYNAMIC_ARCH)
if (X86 OR X86_64 OR ARM64 OR PPC)
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_ARCH")
if (DYNAMIC_OLDER)
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_OLDER")
endif ()
else ()
unset (DYNAMIC_ARCH)
message (STATUS "DYNAMIC_ARCH is not supported on the target architecture, removing")
endif ()
endif ()