1
Description: Avoid csnd soname in Python library
2
The csnd python module uses the csnd library environment as a base. As
3
such, the csnd soname has to be removed from it. This is not pushed
4
upstream since a cleaner solution should be implemented.
5
Author: Felipe Sateler <fsateler@gmail.com>
6
Index: csound/SConstruct
7
===================================================================
8
--- csound.orig/SConstruct 2009-05-24 20:55:20.000000000 +1000
9
+++ csound/SConstruct 2009-05-24 20:55:26.000000000 +1000
11
csoundInterfacesEnvironment.Append(CPPPATH = pythonIncludePath)
12
csndPythonEnvironment = csoundInterfacesEnvironment.Clone()
13
fixCFlagsForSwig(csndPythonEnvironment)
14
+ flag = '-Wl,-soname=libcsnd.so.%s' % csoundLibraryVersion
15
+ if flag in csndPythonEnvironment['SHLINKFLAGS']:
16
+ csndPythonEnvironment['SHLINKFLAGS'].remove(flag)
17
if getPlatform() == 'darwin':
18
if commonEnvironment['dynamicCsoundLibrary'] == '1':
19
csndPythonEnvironment.Append(LIBS = ['_csnd'])