projects.py: Synthesize -l and -L both from pkg.required.devel

-L recursively, -l not.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2016-09-16 11:05:54 +00:00
commit 60c6d770b5

View file

@ -155,7 +155,7 @@ def get_libname(names):
# -L needs to contain more paths than libs linked with -l would require
def get_ldpathflags(names):
deps = get_modules_from_project_txt(names, 'pkg.required', 'run',
deps = get_modules_from_project_txt(names, 'pkg.required', 'devel',
scope = 2, add_self=True, names_only=True)
r = ''
for m in deps:
@ -166,7 +166,7 @@ def get_ldpathflags(names):
def get_ldflags(names):
#print(names)
deps = get_modules_from_project_txt(names, 'pkg.required', 'build',
deps = get_modules_from_project_txt(names, 'pkg.required', 'devel',
scope = 1, add_self=False, names_only=True)
#print(deps)
r = ''