summaryrefslogtreecommitdiff
path: root/attoconf/lib/c.py
diff options
context:
space:
mode:
Diffstat (limited to 'attoconf/lib/c.py')
-rw-r--r--attoconf/lib/c.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/attoconf/lib/c.py b/attoconf/lib/c.py
index c4eefdb..13dd3c1 100644
--- a/attoconf/lib/c.py
+++ b/attoconf/lib/c.py
@@ -28,7 +28,7 @@ class TestError(Exception):
pass
def do_exec(build, args):
- p = subprocess.Popen(args, cwd=build.builddir,
+ p = subprocess.Popen(args.list, cwd=build.builddir,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
out, _ = p.communicate()
@@ -200,10 +200,8 @@ def try_compile_link2_cxx(build, body, CXXFLAGS=[], CPPFLAGS=[], LDFLAGS=[], LDL
def ldflags(build, LDFLAGS):
pass
-def libs(build, LIBS):
- # Make expects something different
- build.vars['LDLIBS'] = build.vars['LIBS']
- del build.vars['LIBS']
+def libs(build, LDLIBS):
+ pass
def cppflags(build, CPPFLAGS):
pass
@@ -235,7 +233,7 @@ class Link(Arches2):
self.add_option('LIBS', init=[],
type=ShellList, check=libs,
help='libraries to pass to the linker, e.g. -l<library>',
- hidden=False)
+ hidden=False, var='LDLIBS')
class Preprocess(Arches2):
__slots__ = ()