From 6b1656f33703ef4ba8c5d90004657c5bc094faae Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Fri, 22 Jul 2016 00:27:38 +0200 Subject: [PATCH] Compile with Ofast and disable _FORTIFY_SOURCE --- jme3-bullet-native/build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jme3-bullet-native/build.gradle b/jme3-bullet-native/build.gradle index ebddec36d..cf42e17f6 100644 --- a/jme3-bullet-native/build.gradle +++ b/jme3-bullet-native/build.gradle @@ -85,11 +85,14 @@ model { if (os == "osx") { cppCompiler.args '-I', "$javaHome/include/darwin" + cppCompiler.args "-Ofast" + cppCompiler.args "-U_FORTIFY_SOURCE" } else if (os == "linux") { cppCompiler.args "-fvisibility=hidden" cppCompiler.args '-I', "$javaHome/include/linux" cppCompiler.args "-fPIC" - + cppCompiler.args "-Ofast" + cppCompiler.args "-U_FORTIFY_SOURCE" cppCompiler.args "-fpermissive" linker.args "-fvisibility=hidden" } else if (os == "windows") { @@ -101,6 +104,8 @@ model { } cppCompiler.args "-fpermissive" cppCompiler.args "-static" + cppCompiler.args "-Ofast" + cppCompiler.args "-U_FORTIFY_SOURCE" linker.args "-static" linker.args "-Wl,--exclude-all-symbols" }