File: 0010-Enable-fPIC-as-default.patch

package info (click to toggle)
maliit-framework 2.3.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,184 kB
  • sloc: cpp: 13,117; ansic: 2,506; xml: 299; makefile: 46; sh: 34; sed: 4
file content (22 lines) | stat: -rw-r--r-- 670 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Andreas Cord-Landwehr <cordlandwehr@kde.org>
Date: Tue, 22 Oct 2024 21:15:43 +0200
Subject: Enable -fPIC as default

This should already be default config for Qt5.
---
 CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 293004f..c3b784b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,6 +19,8 @@ option(enable-hwkeyboard "Enable support for the hardware keyboard" ON)
 option(enable-dbus-activation "Enable dbus activation support for maliit-server" OFF)
 option(with-qt6 "Built with Qt 6 instead of Qt 5" OFF)
 
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+
 # Install paths
 include(GNUInstallDirs)