File 0003-Compile-with-PIC.patch of Package pocketsphinx
From 19eb74476f2559f6a60cd2c3059145b55bcef9fe Mon Sep 17 00:00:00 2001
From: Mladen Milinkovic <maxrd2@smoothware.net>
Date: Sat, 18 Jun 2022 17:47:36 +0200
Subject: [PATCH] Compile with PIC
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fa7e1b8..e52a4fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,7 +57,7 @@ cmake_print_variables(SPHINX_DEBUG DEBUG_ENDIAN)
if(MSVC)
add_compile_options(/W3)
else()
- add_compile_options(-Wall)
+ add_compile_options(-Wall -DPIC -fPIC)
endif()
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
--
2.36.1