~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Modules/Platform/Linux-SunPro-CXX.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Linux sun studio c++ options
2
2
SET(CMAKE_DL_LIBS "dl")
3
 
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-KPIC")
4
 
SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-G")
5
 
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
6
 
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-R")
7
 
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ":")
8
 
SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-h")
 
3
SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_CXX_FLAG "-rpath-link ")
9
4
SET(CMAKE_EXE_EXPORTS_CXX_FLAG "--export-dynamic")
10
 
 
11
 
SET(CMAKE_CXX_FLAGS_INIT "")
12
 
SET(CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
13
 
SET(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-xO2 -xspace -DNDEBUG")
14
 
SET(CMAKE_CXX_FLAGS_RELEASE_INIT "-xO3 -DNDEBUG")
15
 
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-g -xO2")
16
 
 
17
 
# Initialize C link type selection flags.  These flags are used when
18
 
# building a shared library, shared module, or executable that links
19
 
# to other libraries to select whether to use the static or shared
20
 
# versions of the libraries.
21
 
FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
22
 
  SET(CMAKE_${type}_LINK_STATIC_CXX_FLAGS "-Bstatic")
23
 
  SET(CMAKE_${type}_LINK_DYNAMIC_CXX_FLAGS "-Bdynamic")
24
 
ENDFOREACH(type)