From a18c568579d9720a6af1a6d4a545f8ddf3d4d311 Mon Sep 17 00:00:00 2001 From: shadowislord Date: Sun, 7 Sep 2014 19:21:48 -0400 Subject: [PATCH] Fix native bullet build on Linux It is now partially static build, only depending on libc and libm. --- jme3-bullet-native/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jme3-bullet-native/build.gradle b/jme3-bullet-native/build.gradle index e4456320a..9c1ee4c3e 100644 --- a/jme3-bullet-native/build.gradle +++ b/jme3-bullet-native/build.gradle @@ -87,7 +87,9 @@ libraries { cppCompiler.args "-fPIC" cppCompiler.args "-fpermissive" 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") { cppCompiler.args "-I${org.gradle.internal.jvm.Jvm.current().javaHome}/include/win32" // cppCompiler.define('WIN32')