Module: kamailio
Branch: master
Commit: 93b189a22df772ccef6f1eb09b4be0897a467d89
URL:
https://github.com/kamailio/kamailio/commit/93b189a22df772ccef6f1eb09b4be08…
Author: Xenofon Karamanos <xk(a)gilawa.com>
Committer: Xenofon Karamanos <xk(a)gilawa.com>
Date: 2024-12-04T01:32:26Z
cmake: Add parser as a link library for kamailio
---
Modified: src/CMakeLists.txt
Modified: src/core/CMakeLists.txt
---
Diff:
https://github.com/kamailio/kamailio/commit/93b189a22df772ccef6f1eb09b4be08…
Patch:
https://github.com/kamailio/kamailio/commit/93b189a22df772ccef6f1eb09b4be08…
---
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ccafefaefb2..0e9349d352a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -87,6 +87,7 @@ add_executable(kamailio ${CMAKE_CURRENT_SOURCE_DIR}/main.c
${kamailio_SRC})
target_link_libraries(
kamailio
PUBLIC
+ GenerateParser
common
m
Threads::Threads # Pthread library
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index d3655f5deb6..139e308b693 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -45,7 +45,8 @@ add_library(
GenerateParser ${CMAKE_CURRENT_SOURCE_DIR}/lex.yy.c
${CMAKE_CURRENT_SOURCE_DIR}/cfg.tab.c
)
-target_link_libraries(GenerateParser PUBLIC common)
+# common_modules required so -fPIC is added to the compile options
+target_link_libraries(GenerateParser PUBLIC common common_modules)
# -----------------------