https://github.com/Kitware/CMake
Revision e7e88e955bc773be792e645ee8558d78b4183a87 authored by Brad King on 26 September 2018, 13:46:27 UTC, committed by Brad King on 26 September 2018, 13:47:53 UTC
Backport libarchive commit v3.3.3~16^2 (fix build with LibreSSL 2.7,
2018-04-01).  LibreSSL 2.7 adds OpenSSL 1.1 API leading to conflicts on
method names.

Fixes: #18404
1 parent f478fa6
Raw File
Tip revision: e7e88e955bc773be792e645ee8558d78b4183a87 authored by Brad King on 26 September 2018, 13:46:27 UTC
libarchive: Backport fix for build with LibreSSL 2.7
Tip revision: e7e88e9
SCO.cmake
# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.


# This module is shared by multiple languages; use include blocker.
if(__COMPILER_SCO)
  return()
endif()
set(__COMPILER_SCO 1)

macro(__compiler_sco lang)
  # Feature flags.
  set(CMAKE_${lang}_COMPILE_OPTIONS_PIC -Kpic)
  set(CMAKE_${lang}_COMPILE_OPTIONS_PIE -Kpie)
  set(CMAKE_${lang}_COMPILE_OPTIONS_DLL -belf)
  set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-Kpic -belf")
  set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-belf -Wl,-Bexport")
endmacro()
back to top