diff --git a/compiler/build.gradle b/compiler/build.gradle index 60d3a436f6c..0b5766578a8 100644 --- a/compiler/build.gradle +++ b/compiler/build.gradle @@ -100,7 +100,9 @@ model { } else if (osdetector.os == "windows") { linker.args "-static", "-lprotoc", "-lprotobuf", "-static-libgcc", "-static-libstdc++", "-s" - } else { + } else if (osdetector.arch == "ppcle_64") { + linker.args "-Wl,-Bstatic", "-lprotoc", "-lprotobuf", "-Wl,-Bdynamic", "-lpthread", "-s" + } else { // Link protoc, protobuf, libgcc and libstdc++ statically. // Link other (system) libraries dynamically. // Clang under OSX doesn't support these options.