mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 22:25:32 -04:00
makedep.py: Add LDFLAGS_C for linking C-executables
svn-origin-rev: 16879
This commit is contained in:
parent
b8d125d311
commit
0aa9ddc7a2
1 changed files with 4 additions and 1 deletions
|
|
@ -106,7 +106,10 @@ def main():
|
|||
p = normpath(dirname(fn))
|
||||
deps = collect_pkg_deps(packages, p)
|
||||
makefile += " ".join(["$(LIBDIR)/"+a+archive_ext for a in deps]) + "\n"
|
||||
makefile += "\t" + "$(LD) $(LDFLAGS) -L$(LIBDIR) -o $@ %s.o "%bfn
|
||||
makefile += "\t" + "$(LD) $(LDFLAGS)"
|
||||
if(fn.endswith(".c")):
|
||||
makefile += " $(LDFLAGS_C)"
|
||||
makefile += " -L$(LIBDIR) -o $@ %s.o "%bfn
|
||||
makefile += "$(EXTERNAL_OBJECTS) "
|
||||
assert(all([a.startswith("lib") for a in deps]))
|
||||
makefile += " ".join(["-l"+a[3:]+archive_postfix for a in deps])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue