Fix native bullet build on Linux

It is now partially static build, only depending on libc and libm.
experimental
shadowislord 11 years ago
parent ef9f6213f9
commit a18c568579
  1. 4
      jme3-bullet-native/build.gradle

@ -87,7 +87,9 @@ libraries {
cppCompiler.args "-fPIC" cppCompiler.args "-fPIC"
cppCompiler.args "-fpermissive" cppCompiler.args "-fpermissive"
cppCompiler.args "-static-libgcc" cppCompiler.args "-static-libgcc"
linker.args "-static" cppCompiler.args "-static-libstdc++"
linker.args "-static-libgcc"
linker.args "-static-libstdc++"
} else if (targetPlatform.operatingSystem.name == "windows") { } else if (targetPlatform.operatingSystem.name == "windows") {
cppCompiler.args "-I${org.gradle.internal.jvm.Jvm.current().javaHome}/include/win32" cppCompiler.args "-I${org.gradle.internal.jvm.Jvm.current().javaHome}/include/win32"
// cppCompiler.define('WIN32') // cppCompiler.define('WIN32')

Loading…
Cancel
Save