[Native] Drop explicit -fPIC flag setup

We don't need to explicitly set -fPIC flag everywhere
because since d82109cc92
it is set by default for all ClangArgs users.
This commit is contained in:
Sergey Bogolepov
2021-06-10 15:12:32 +07:00
committed by Space
parent 7550351702
commit 36386de9a2
9 changed files with 4 additions and 27 deletions
@@ -36,9 +36,6 @@ native {
val hostLibffiDir = rootProject.project(":kotlin-native").extra["${host}LibffiDir"]
val cflags = mutableListOf("-I$hostLibffiDir/include",
*platformManager.hostPlatform.clang.hostCompilerArgsForJni)
if (!HostManager.hostIsMingw) {
cflags += "-fPIC"
}
suffixes {
(".c" to ".$obj") {
tool(*platformManager.hostPlatform.clang.clangC("").toTypedArray())