diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-17 02:31:36 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | 1a915d39651e6c8c43ebe8d27ed6e518bf03909c (patch) | |
tree | 1ba25ce0bccf22754a2fb1b6767ef9880a7fb8d0 | |
parent | 1abab1fa5e25799a41a1ca76b39a31cda961e6d0 (diff) |
Build non-lib files with fpic as well (fixes qt build)
-rw-r--r-- | backend/ninja/Ninja.cpp | 4 |
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") |