31 |
|
|
32 |
# Automatically recurse over linked linbraries. |
# Automatically recurse over linked linbraries. |
33 |
# For binutils >= 2.22 (http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2011-12/msg00257.html) |
# For binutils >= 2.22 (http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2011-12/msg00257.html) |
34 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--copy-dt-needed-entries" ) |
execute_process( |
35 |
|
COMMAND ld -v |
36 |
|
OUTPUT_VARIABLE LD_VERSION_LONG |
37 |
|
OUTPUT_STRIP_TRAILING_WHITESPACE) |
38 |
|
string(REGEX MATCH "[0-9]*\\.[0-9]*" LD_VERSION ${LD_VERSION_LONG}) |
39 |
|
if(NOT ${LD_VERSION} STRLESS "2.22") |
40 |
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--copy-dt-needed-entries" ) |
41 |
|
endif() |
42 |
|
|
43 |
# Mute compile warnings (i.e. remove the -Wsomething compiler options). |
# Mute compile warnings (i.e. remove the -Wsomething compiler options). |
44 |
# Warnigns can be shown by adding -DPAMVMC_SHOW_WARNINGS=1 to the invocation of cmake. |
# Warnigns can be shown by adding -DPAMVMC_SHOW_WARNINGS=1 to the invocation of cmake. |