From 0aa9ddc7a2724cf01b05b3fcf5d7fb3e32050b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Tue, 3 May 2016 14:28:51 +0000 Subject: [PATCH] makedep.py: Add LDFLAGS_C for linking C-executables svn-origin-rev: 16879 --- tools/build_utils/makedep.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/build_utils/makedep.py b/tools/build_utils/makedep.py index 9ff5f57222..3ce14ba10b 100755 --- a/tools/build_utils/makedep.py +++ b/tools/build_utils/makedep.py @@ -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])