STYLE: Updated comment about link type flags and passing directly to ld.
This commit is contained in:
parent
e21b65cbb9
commit
b2a5495922
@ -86,10 +86,11 @@ IF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
)
|
)
|
||||||
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
|
||||||
# Initialize C link type selection flags. These flags are used when
|
# Initialize C and CXX link type selection flags. These flags are
|
||||||
# building a shared library, shared module, or executable that links
|
# used when building a shared library, shared module, or executable
|
||||||
# to other libraries to select whether to use the static or shared
|
# that links to other libraries to select whether to use the static or
|
||||||
# versions of the libraries.
|
# shared versions of the libraries. Note that C modules and shared
|
||||||
|
# libs are built using ld directly so we leave off the "-Wl," portion.
|
||||||
FOREACH(type SHARED_LIBRARY SHARED_MODULE)
|
FOREACH(type SHARED_LIBRARY SHARED_MODULE)
|
||||||
SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-a archive")
|
SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-a archive")
|
||||||
SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-a default")
|
SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-a default")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user