diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gperftools/libunwind.diff | |
Diffstat (limited to 'vcpkg/ports/gperftools/libunwind.diff')
| -rw-r--r-- | vcpkg/ports/gperftools/libunwind.diff | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/gperftools/libunwind.diff b/vcpkg/ports/gperftools/libunwind.diff new file mode 100644 index 0000000..ad0a1c5 --- /dev/null +++ b/vcpkg/ports/gperftools/libunwind.diff @@ -0,0 +1,24 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 52629d3..a93c7e8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -241,13 +241,13 @@ if(NOT WIN32) + endif() + + if(gperftools_enable_libunwind) +- check_include_file("libunwind.h" HAVE_LIBUNWIND_H) ++ find_package(PkgConfig REQUIRED) ++ pkg_check_modules(PC_LIBUNWIND libunwind REQUIRED) ++ find_file(HAVE_LIBUNWIND_H "libunwind.h" PATHS ${PC_LIBUNWIND_INCLUDE_DIRS} NO_DEFAULT_PATH REQUIRED) + if(HAVE_LIBUNWIND_H) +- find_library(libunwind_location NAMES unwind) +- if(libunwind_location) +- check_library_exists( +- unwind backtrace ${libunwind_location} have_libunwind) +- endif() ++ include_directories(${PC_LIBUNWIND_INCLUDE_DIRS}) ++ set(libunwind_location "${PC_LIBUNWIND_LINK_LIBRARIES}" CACHE INTERNAL "") ++ set(have_libunwind 1) + if(have_libunwind) + set(unwind_libs ${libunwind_location}) + set(will_use_libunwind ON) |