aboutsummaryrefslogtreecommitdiff
path: root/backend/ninja
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-17 02:31:36 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit1a915d39651e6c8c43ebe8d27ed6e518bf03909c (patch)
tree1ba25ce0bccf22754a2fb1b6767ef9880a7fb8d0 /backend/ninja
parent1abab1fa5e25799a41a1ca76b39a31cda961e6d0 (diff)
Build non-lib files with fpic as well (fixes qt build)
Diffstat (limited to 'backend/ninja')
-rw-r--r--backend/ninja/Ninja.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp
index 5df859a..ded7b28 100644
--- a/backend/ninja/Ninja.cpp
+++ b/backend/ninja/Ninja.cpp
@@ -989,7 +989,7 @@ namespace backend
ninja::NinjaArg("ccache"),
ninja::NinjaArg(cCompilerName),
ninja::NinjaArg("-c"),
- ninja::NinjaArg("-fpie"),
+ ninja::NinjaArg::createRaw("-fPIE -fPIC"),
ninja::NinjaArg("$in"),
ninja::NinjaArg("-o"),
ninja::NinjaArg("$out")
@@ -1003,7 +1003,7 @@ namespace backend
ninja::NinjaArg("ccache"),
ninja::NinjaArg(cCompilerName),
ninja::NinjaArg("-c"),
- ninja::NinjaArg("-fpic"),
+ ninja::NinjaArg("-fPIC"),
ninja::NinjaArg("$in"),
ninja::NinjaArg("-o"),
ninja::NinjaArg("$out")