From 1a915d39651e6c8c43ebe8d27ed6e518bf03909c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 17 Oct 2018 02:31:36 +0200 Subject: Build non-lib files with fpic as well (fixes qt build) --- backend/ninja/Ninja.cpp | 4 ++-- 1 file 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") -- cgit v1.2.3