From f258442b770008b2582b0a56d8f853a4ea79edb7 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 12 Dec 2022 20:03:30 +0100 Subject: [PATCH] CMake: Fix compile error due to missing `-lm` for deploy-stub --- pandatool/src/deploy-stub/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/pandatool/src/deploy-stub/CMakeLists.txt b/pandatool/src/deploy-stub/CMakeLists.txt index 1c7a37017f..066d292551 100644 --- a/pandatool/src/deploy-stub/CMakeLists.txt +++ b/pandatool/src/deploy-stub/CMakeLists.txt @@ -18,6 +18,7 @@ elseif(IS_LINUX OR IS_FREEBSD) INSTALL_RPATH "$ORIGIN" BUILD_WITH_INSTALL_RPATH ON) target_link_options(deploy-stub PRIVATE -Wl,--disable-new-dtags -Wl,-z,origin -rdynamic) + target_link_libraries(deploy-stub m) endif() target_link_libraries(deploy-stub Python::Python)