https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=15713

João Valverde <joao.valve...@tecnico.ulisboa.pt> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joao.valverde@tecnico.ulisb
                   |                            |oa.pt

--- Comment #1 from João Valverde <joao.valve...@tecnico.ulisboa.pt> ---
pkg-config is being correctly used to provide hints to the search procedure.
The ENABLE_STATIC CMake option currently just disables building shared
libraries.

I wouldn't object to this patch, if it helps. Seems to be what you want?
(untested).

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d182d43017..2402d3d92f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -730,6 +730,9 @@ include(CheckCXXCompilerFlag)

 if(ENABLE_STATIC)
        set(BUILD_SHARED_LIBS 0)
+       if (UNIX)
+               set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
+       endif()
 else()
        set(BUILD_SHARED_LIBS 1)
 endif()

-- 
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via:    Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
             mailto:wireshark-bugs-requ...@wireshark.org?subject=unsubscribe

Reply via email to