mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Changed: #1109 archlinux libwww linker error
This commit is contained in:
parent
31e9d7cc28
commit
89ff84badf
1 changed files with 4 additions and 4 deletions
|
@ -30,9 +30,9 @@ MACRO(CHECK_UNDEFINED_SYMBOL MYLIBRARY SYMBOL SYMBOL_FOUND)
|
|||
IF(CMAKE_OBJDUMP)
|
||||
# Use objdump to check if a library is using an external symbol
|
||||
EXEC_PROGRAM(${CMAKE_OBJDUMP} ARGS "-T ${${MYLIBRARY}} | grep ${SYMBOL}" OUTPUT_VARIABLE OBJDUMP_SYMBOL)
|
||||
IF(OBJDUMP_SYMBOL MATCHES "UND")
|
||||
IF(NOT OBJDUMP_SYMBOL MATCHES "UND")
|
||||
SET(${SYMBOL_FOUND} FALSE)
|
||||
ENDIF(OBJDUMP_SYMBOL MATCHES "UND")
|
||||
ENDIF(NOT OBJDUMP_SYMBOL MATCHES "UND")
|
||||
ENDIF(CMAKE_OBJDUMP)
|
||||
ENDIF(WIN32)
|
||||
ENDMACRO(CHECK_UNDEFINED_SYMBOL)
|
||||
|
@ -69,9 +69,9 @@ MACRO(CHECK_LINKED_LIBRARY MYLIBRARY OTHERLIBRARY LIBRARY_FOUND)
|
|||
# TODO: under Solaris use dump -Lv <lib>
|
||||
# Use objdump to check if a library is linked to another library
|
||||
EXEC_PROGRAM(${CMAKE_OBJDUMP} ARGS "-p ${${MYLIBRARY}} | grep ${LIBNAME}" OUTPUT_VARIABLE OBJDUMP_LIBRARY)
|
||||
IF(NOT OBJDUMP_LIBRARY MATCHES "NEEDED")
|
||||
IF(OBJDUMP_LIBRARY MATCHES "NEEDED")
|
||||
SET(${LIBRARY_FOUND} TRUE)
|
||||
ENDIF(NOT OBJDUMP_LIBRARY MATCHES "NEEDED")
|
||||
ENDIF(OBJDUMP_LIBRARY MATCHES "NEEDED")
|
||||
ENDIF(CMAKE_OBJDUMP)
|
||||
ENDIF(WIN32)
|
||||
ENDMACRO(CHECK_LINKED_LIBRARY)
|
||||
|
|
Loading…
Reference in a new issue