summaryrefslogtreecommitdiff
path: root/src/task_so.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/task_so.cc')
-rw-r--r--src/task_so.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/task_so.cc b/src/task_so.cc
index c98e4a7..92aeefe 100644
--- a/src/task_so.cc
+++ b/src/task_so.cc
@@ -116,6 +116,11 @@ int TaskSO::runInner()
auto tool = compiler();
const auto& cfg = ctor::get_configuration();
+ auto ldflags = cfg.getenv("LDFLAGS");
+ if(!ldflags.empty())
+ {
+ append(args, ld_option(toolchain, ctor::ld_opt::custom, ldflags));
+ }
auto res = execute(settings, tool, args, cfg.env);
if(res != 0)
{