From 5fc652aeba3000759914f54286048c239972ac07 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 8 Dec 2015 19:09:51 +0800 Subject: add ldflags for compiler --- xmake/scripts/base/project.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmake/scripts/base/project.lua') diff --git a/xmake/scripts/base/project.lua b/xmake/scripts/base/project.lua index 74128be9d..c9d7bd9b3 100644 --- a/xmake/scripts/base/project.lua +++ b/xmake/scripts/base/project.lua @@ -671,7 +671,7 @@ function project._make_option_for_checking_links(opt, links, cfile, objectfile, local ok = compiler.check_include(opt, nil, cfile, objectfile) -- check link - if ok then ok = linker.check_links(opt, links, objectfile, targetfile) end + if ok then ok = linker.check_links(opt, links, cfile, objectfile, targetfile) end -- trace utils.verbose("checking for the links %s ... %s", links_str, utils.ifelse(ok, "ok", "no")) @@ -747,7 +747,7 @@ function project._make_option_for_checking_cfuncs(opt, cfuncs, cfile, objectfile local ok = compiler.check_function(opt, cfunc, cfile, objectfile) -- check link - if ok and opt.links then ok = linker.check_links(opt, opt.links, objectfile, targetfile) end + if ok and opt.links then ok = linker.check_links(opt, opt.links, cfile, objectfile, targetfile) end -- trace utils.verbose("checking for the c function %s ... %s", cfunc, utils.ifelse(ok, "ok", "no")) @@ -770,7 +770,7 @@ function project._make_option_for_checking_cxxfuncs(opt, cxxfuncs, cxxfile, obje local ok = compiler.check_function(opt, cxxfunc, cxxfile, objectfile) -- check link - if ok and opt.links then ok = linker.check_links(opt, opt.links, objectfile, targetfile) end + if ok and opt.links then ok = linker.check_links(opt, opt.links, cxxfile, objectfile, targetfile) end -- trace utils.verbose("checking for the c++ function %s ... %s", cxxfunc, utils.ifelse(ok, "ok", "no")) -- cgit v1.3.1