--- ./plugin/x/protocol/plugin/CMakeLists.txt_orig	2020-07-20 07:48:16 +0000
+++ ./plugin/x/protocol/plugin/CMakeLists.txt	2020-07-21 06:03:27 +0000
@@ -63,11 +63,15 @@
 # The issue is not visible while using gcc standard linker.
 # It can be observed with gcc+gold and gcc+lld.
 #
-IF(MY_COMPILER_IS_GNU)
-  SET_TARGET_PROPERTIES(
-    xprotocol_plugin
-    PROPERTIES LINK_FLAGS
-    "-Wl,--no-as-needed -lpthread")
+# Not applicable for AIX linker
+#
+IF(NOT CMAKE_SYSTEM_NAME MATCHES AIX)
+  IF(MY_COMPILER_IS_GNU)
+    SET_TARGET_PROPERTIES(
+      xprotocol_plugin
+      PROPERTIES LINK_FLAGS
+      "-Wl,--no-as-needed -lpthread")
+  ENDIF()
 ENDIF()
 
 SET(PROTOC_PLUGIN_GENERATED_HDR
