]> git.kaiwu.me - njs.git/commitdiff
Avoiding aligned attribute detection skip on ppc64le platforms.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 16 Jul 2019 09:57:29 +0000 (12:57 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 16 Jul 2019 09:57:29 +0000 (12:57 +0300)
auto/clang

index 8ef6ac21fa9ec8834878fe86fe38f24b4ed6677c..619906d40c21d91b0c4d5d1a64619526c091488c 100644 (file)
@@ -278,30 +278,17 @@ nxt_feature_test="#include <stdlib.h>
 . auto/feature
 
 
-nxt_os="$NXT_SYSTEM/$NXT_SYSTEM_PLATFORM"
-
-if [ "$nxt_os" = "Linux/ppc64le" ]; then
-
-    # Old GNU ld linker may hang on Linux ppc64le platform
-    # if some of these features are enabled.
-
-    echo "checking for GCC __attribute__ aligned is disabled for $nxt_os."
-
-else
-
-    nxt_feature="GCC __attribute__ aligned"
-    nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_ALIGNED
-    nxt_feature_run=no
-    nxt_feature_path=
-    nxt_feature_libs=
-    nxt_feature_test="int n __attribute__ ((aligned(64)));
-
-                      int main(void) {
-                          return 0;
-                      }"
-    . auto/feature
+nxt_feature="GCC __attribute__ aligned"
+nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_ALIGNED
+nxt_feature_run=no
+nxt_feature_path=
+nxt_feature_libs=
+nxt_feature_test="int n __attribute__ ((aligned(64)));
 
-fi
+                                 int main(void) {
+                                         return 0;
+                                 }"
+. auto/feature
 
 
 nxt_feature="Memory sanitizer"