File: lua-link.diff

package info (click to toggle)
csound 1%3A6.18.1%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 63,220 kB
  • sloc: ansic: 192,643; cpp: 14,149; javascript: 9,654; objc: 9,181; python: 3,376; java: 3,337; sh: 1,840; yacc: 1,255; xml: 985; perl: 635; lisp: 411; tcl: 341; lex: 217; makefile: 128
file content (27 lines) | stat: -rw-r--r-- 1,140 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Felipe Sateler <fsateler@gmail.com>
Date: Mon, 30 Nov 2015 10:02:13 -0300
Subject: Only link to lua when necessary, and to the correct lib

Lua policy recommends not linking against the lua library, because it
doesn't help at all. All lua-using programs will load the library, not
the modules.
TODO: The csound-lua bridge is not implemented in cmake yet.
The csound-lua bridge, on the other hand, needs to link to the library or
else it will fail to load. Use the correct library name.
---
 interfaces/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interfaces/CMakeLists.txt b/interfaces/CMakeLists.txt
index aff6e8f..bd3a23c 100644
--- a/interfaces/CMakeLists.txt
+++ b/interfaces/CMakeLists.txt
@@ -217,7 +217,7 @@ if(BUILD_JAVA_INTERFACE OR BUILD_LUA_INTERFACE)
 
     if(BUILD_LUA_INTERFACE)
         set(LUA_MODULE_INSTALL_DIR ${LIBRARY_INSTALL_DIR} CACHE PATH "Lua  module install dir")
-        set(swiglua_LIBS ${LUA_LIBRARY} ${CSOUNDLIB} libcsnd6)
+        set(swiglua_LIBS ${CSOUNDLIB} libcsnd6)
 
         SET_SOURCE_FILES_PROPERTIES(lua_interface.i
             PROPERTIES CPLUSPLUS ON