Package: supercollider / 1:3.7.0~repack-4+deb9u1

tlsf-fPIC-flag.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Dan Stowell <danstowell@users.sourceforge.net>
Date: Wed, 16 Nov 2016 18:33:12 -0300
Subject: Add -fPIC flag to tlfs

This patch (modified) was accepted upstream, and will be superfluous in
SC 3.7.2 and later

Forwarded: yes
---
 external_libraries/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/external_libraries/CMakeLists.txt b/external_libraries/CMakeLists.txt
index 9d2555d..5dd0fe1 100644
--- a/external_libraries/CMakeLists.txt
+++ b/external_libraries/CMakeLists.txt
@@ -69,6 +69,7 @@ endif()
 add_library(tlsf STATIC "TLSF-2.4.6/src/tlsf.c")
 target_compile_definitions( tlsf PRIVATE TLSF_STATISTIC=1 )
 target_include_directories( tlsf INTERFACE TLSF-2.4.6/src )
+target_compile_options(tlsf PRIVATE -fPIC)
 
 if(LTO)
 	set_property(TARGET oscpack tlsf