Module: kamailio
Branch: master
Commit: 93b189a22df772ccef6f1eb09b4be0897a467d89
URL: 
https://github.com/kamailio/kamailio/commit/93b189a22df772ccef6f1eb09b4be0897a467d89

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <x...@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/93b189a22df772ccef6f1eb09b4be0897a467d89.diff
Patch: 
https://github.com/kamailio/kamailio/commit/93b189a22df772ccef6f1eb09b4be0897a467d89.patch

---

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)
 
 # -----------------------
 

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to