[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:
@@ -46,9 +46,6 @@ val libclang =
|
||||
val cflags = mutableListOf( "-I$llvmDir/include",
|
||||
"-I${project(":kotlin-native:libclangext").projectDir.absolutePath}/src/main/include",
|
||||
*platformManager.hostPlatform.clang.hostCompilerArgsForJni)
|
||||
if (!HostManager.hostIsMingw) {
|
||||
cflags += "-fPIC"
|
||||
}
|
||||
|
||||
val ldflags = mutableListOf("$llvmDir/$libclang", "-L${libclangextDir.absolutePath}", "-lclangext")
|
||||
|
||||
|
||||
@@ -4,13 +4,11 @@ headerFilter = clang-c/**
|
||||
|
||||
compiler = clang
|
||||
|
||||
compilerOpts = -std=c99 -fPIC
|
||||
compilerOpts = -std=c99
|
||||
linkerOpts.linux = -Wl,-z,noexecstack
|
||||
|
||||
linker = clang++
|
||||
|
||||
linkerOpts = -fPIC
|
||||
|
||||
strictEnums = CXErrorCode CXCursorKind CXTypeKind CXDiagnosticSeverity CXLoadDiag_Error CXSaveError \
|
||||
CXTUResourceUsageKind CXLinkageKind CXVisibilityKind CXLanguageKind CXCallingConv CXChildVisitResult \
|
||||
CXTokenKind CXEvalResultKind CXVisitorResult CXResult CXIdxEntityKind
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user