aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/cxx/rule.cxx')
-rw-r--r--build/cxx/rule.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/build/cxx/rule.cxx b/build/cxx/rule.cxx
index a7ec2a6..bc105cf 100644
--- a/build/cxx/rule.cxx
+++ b/build/cxx/rule.cxx
@@ -576,17 +576,7 @@ namespace build
// Set the -fPIC option if we are building a shared object.
//
if (so)
- {
- auto var (ot.variables["cxx.coptions"]);
-
- if (!var)
- {
- if (auto var1 = ot.base_scope ()["cxx.coptions"])
- var = var1;
- }
-
- var += "-fPIC";
- }
+ ot.append ("cxx.coptions") += "-fPIC";
// If this target already exists, then it needs to be "compatible"
// with what we are doing here.