build.gradle: remove extralib stdc++

This commit is contained in:
s1lent 2019-09-04 04:56:45 +07:00
parent 3aa987212e
commit 8591bbd13d
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C
2 changed files with 7 additions and 1 deletions

View File

@ -165,9 +165,13 @@ void setupToolchain(NativeBinarySpec b)
cfg.linkerOptions.args '-qno-opt-class-analysis'
}
if (cfg.linkerOptions.staticLibStdCpp) {
cfg.singleDefines 'BUILD_STATIC_LIBSTDC'
}
cfg.compilerOptions.args '-g0', '-fno-rtti', '-fno-exceptions'
cfg.projectLibpath(project, '/lib/linux32')
cfg.extraLibs 'dl', 'm', 'stdc++', 'aelf32'
cfg.extraLibs 'dl', 'm', 'aelf32'
}
if (GradleCppUtils.windows && !unitTestExecutable) {

View File

@ -28,4 +28,6 @@
#include "precompiled.h"
#ifndef BUILD_STATIC_LIBSTDC // don't include to build if build with static libstdc++
#include "stdc++compat.cpp"
#endif