Safe-guard non-rt-safe sidechain operations
[ardour.git] / libs / lua / wscript
index b67820f3ccfc75f681a284f1a42ccd13034cd7db..3936e552e9604d98113f98956ac254ab83434e51 100644 (file)
@@ -22,12 +22,12 @@ def configure(conf):
 
 def build(bld):
     obj=bld.stlib (source = ['lua.cc', 'luastate.cc'],
-               cflags = [ '-fPIC' ],
-               cxxflags = [ '-fPIC' ],
-               includes = ['.'],
-               export_includes = ['.'],
-               target = 'liblua',
-               uselib = [ 'SIGCPP', 'DL' ]
+                   cflags = [ bld.env['compiler_flags_dict']['pic'] ],
+                   cxxflags = [ bld.env['compiler_flags_dict']['pic'] ],
+                   includes = ['.'],
+                   export_includes = ['.'],
+                   target = 'liblua',
+                   uselib = [ 'SIGCPP', 'DL' ]
                )
     autowaf.ensure_visible_symbols (obj, True)