From f967bd299af66188c4b8fe9f3ac3517d033058ae Mon Sep 17 00:00:00 2001
From: kr328 <kr328app@outlook.com>
Date: Tue, 25 May 2021 19:14:57 +0800
Subject: [PATCH] Improve: enable CMAKE_POSITION_INDEPENDENT_CODE

---
 core/src/main/cpp/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/src/main/cpp/CMakeLists.txt b/core/src/main/cpp/CMakeLists.txt
index 2260c1a8..49b2b0a1 100644
--- a/core/src/main/cpp/CMakeLists.txt
+++ b/core/src/main/cpp/CMakeLists.txt
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.0)
 
 project(clash-bridge C)
 
+set(CMAKE_POSITION_INDEPENDENT_CODE on)
+
 set(GO_OUTPUT_BASE ${GO_OUTPUT}/${FLAVOR_NAME})
 
 if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
-- 
GitLab