SunPro-ASM.cmake 1014 B

123456789101112131415161718192021222324
  1. set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s )
  2. set(CMAKE_ASM_VERBOSE_FLAG "-#")
  3. set(CMAKE_SHARED_LIBRARY_ASM_FLAGS "-KPIC")
  4. set(CMAKE_SHARED_LIBRARY_CREATE_ASM_FLAGS "-G")
  5. set(CMAKE_SHARED_LIBRARY_RUNTIME_ASM_FLAG "-R")
  6. set(CMAKE_SHARED_LIBRARY_RUNTIME_ASM_FLAG_SEP ":")
  7. set(CMAKE_SHARED_LIBRARY_SONAME_ASM_FLAG "-h")
  8. string(APPEND CMAKE_ASM_FLAGS_INIT " ")
  9. string(APPEND CMAKE_ASM_FLAGS_DEBUG_INIT " -g")
  10. string(APPEND CMAKE_ASM_FLAGS_MINSIZEREL_INIT " -xO2 -xspace -DNDEBUG")
  11. string(APPEND CMAKE_ASM_FLAGS_RELEASE_INIT " -xO3 -DNDEBUG")
  12. string(APPEND CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT " -g -xO2 -DNDEBUG")
  13. # Initialize ASM link type selection flags. These flags are used when
  14. # building a shared library, shared module, or executable that links
  15. # to other libraries to select whether to use the static or shared
  16. # versions of the libraries.
  17. foreach(type SHARED_LIBRARY SHARED_MODULE EXE)
  18. set(CMAKE_${type}_LINK_STATIC_ASM_FLAGS "-Bstatic")
  19. set(CMAKE_${type}_LINK_DYNAMIC_ASM_FLAGS "-Bdynamic")
  20. endforeach()