diff options
| author | 2012-10-07 09:27:40 +0000 | |
|---|---|---|
| committer | 2012-10-07 09:27:40 +0000 | |
| commit | eb080aab342c048004127463df4e05866a137b6d (patch) | |
| tree | 3b34faca1b3a286a98ebb5a67f3fc42b73692ee6 /src | |
| parent | properly fix -Wl,--no-undefined handling (diff) | |
| download | KVIrc-eb080aab342c048004127463df4e05866a137b6d.tar.gz KVIrc-eb080aab342c048004127463df4e05866a137b6d.tar.bz2 KVIrc-eb080aab342c048004127463df4e05866a137b6d.zip | |
fix perlcore module linking under mingw (#1328)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6275 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/perlcore/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/perlcore/CMakeLists.txt b/src/modules/perlcore/CMakeLists.txt index e0b5de248..56403fa8a 100644 --- a/src/modules/perlcore/CMakeLists.txt +++ b/src/modules/perlcore/CMakeLists.txt @@ -11,6 +11,8 @@ if(COMPILE_PERL_SUPPORT) # Activestates perl is too chatty for us set( ENV{ACTIVEPERL_CONFIG_SILENT} 1 ) endif() + + # Get compile flags execute_process(COMMAND ${PERL_EXECUTABLE} -MExtUtils::Embed -e ccopts OUTPUT_VARIABLE PERL_COMPILE_FLAGS ) @@ -20,7 +22,7 @@ if(COMPILE_PERL_SUPPORT) #remove leading and trailing spaces (string strip) string(REGEX REPLACE "(^( )+|( )+$)" "" PERL_COMPILE_FLAGS ${PERL_COMPILE_FLAGS}) - # Get the right flags to link with + # Get links flags execute_process( COMMAND ${PERL_EXECUTABLE} -MExtUtils::Embed -e ldopts OUTPUT_VARIABLE PERL_LINK_FLAGS @@ -30,7 +32,6 @@ if(COMPILE_PERL_SUPPORT) string(REGEX REPLACE "(\r?\n)+$" "" PERL_LINK_FLAGS "${PERL_LINK_FLAGS}") # Remove leading and trailing spaces (string strip) string(REGEX REPLACE "(^( )+|( )+$)" "" PERL_LINK_FLAGS "${PERL_LINK_FLAGS}") - endif() include(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt) @@ -44,5 +45,6 @@ if(COMPILE_PERL_SUPPORT) string(REPLACE "/RTC1" "" CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG}) endif() set_target_properties(${kvi_module_name} PROPERTIES COMPILE_FLAGS ${PERL_COMPILE_FLAGS}) - set_target_properties(${kvi_module_name} PROPERTIES LINK_FLAGS "${MODULE_ADDITIONAL_LINK_FLAGS} ${PERL_LINK_FLAGS}") + set_target_properties(${kvi_module_name} PROPERTIES LINK_FLAGS "${MODULE_ADDITIONAL_LINK_FLAGS}") + target_link_libraries(${kvi_module_name} ${LIBS} "${PERL_LINK_FLAGS}") endif() |
