Browse Source

Do not propagate DYNAMIC_ARCH to CFLAGS if it is not supported on the architecture

pull/2165/head
Martin Kroeker GitHub 6 years ago
parent
commit
b11f0b6a70
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      cmake/system.cmake

+ 6
- 4
cmake/system.cmake View File

@@ -199,10 +199,12 @@ if (NEED_PIC)
endif()
endif ()

if (DYNAMIC_ARCH)
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_ARCH")
if (DYNAMIC_OLDER)
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_OLDER")
if (X86 OR X86_64 OR ARM64 OR PPC)
if (DYNAMIC_ARCH)
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_ARCH")
if (DYNAMIC_OLDER)
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_OLDER")
endif ()
endif ()
endif ()



Loading…
Cancel
Save