had not resovled the issue. So now it is enabled and the aligment
attribute has been disabled instead for Linux/PPC64.
. ${NXT_AUTO}feature
+nxt_feature="GCC __attribute__ visibility"
+nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_VISIBILITY
+nxt_feature_run=
+nxt_feature_path=
+nxt_feature_libs=
+nxt_feature_test="int n __attribute__ ((visibility(\"default\")));
+
+ int main() {
+ return 1;
+ }"
+. ${NXT_AUTO}feature
+
+
nxt_feature="GCC __attribute__ aligned"
nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_ALIGNED
nxt_feature_run=
#endif
-#if (NXT_HAVE_GCC_ATTRIBUTE_MALLOC)
-#define NXT_MALLOC_LIKE __attribute__((__malloc__))
+#if (NXT_HAVE_GCC_ATTRIBUTE_ALIGNED)
+#if (NXT_LINUX && __PPC64__)
+/* Old GNU ld linker may hang on Linux ppc64le platform. */
+#define nxt_aligned(x)
#else
-#define NXT_MALLOC_LIKE
+#define nxt_aligned(x) __attribute__((aligned(x)))
+#endif
+
+#else
+#define nxt_aligned(x)
#endif
-#if (NXT_HAVE_GCC_ATTRIBUTE_ALIGNED)
-#define nxt_aligned(x) __attribute__((aligned(x)))
+#if (NXT_HAVE_GCC_ATTRIBUTE_MALLOC)
+#define NXT_MALLOC_LIKE __attribute__((__malloc__))
#else
-#define nxt_aligned(x)
+#define NXT_MALLOC_LIKE
#endif