From a6d78c5e3e7f3091e2b84c3afda5f91f51fbe2d6 Mon Sep 17 00:00:00 2001 From: Amit Shirodkar <53206535+shirodkara@users.noreply.github.com> Date: Mon, 7 Jun 2021 12:40:29 +0530 Subject: [PATCH] fix build on ppc64le (#8141) --- compiler/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/build.gradle b/compiler/build.gradle index 60d3a436f6..0b5766578a 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.