From e0470c3eebcc5d560be03798b783dc11efe8f7f4 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Tue, 16 Jul 2019 12:57:29 +0300 Subject: [PATCH] Avoiding aligned attribute detection skip on ppc64le platforms. --- auto/clang | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/auto/clang b/auto/clang index 8ef6ac21..619906d4 100644 --- a/auto/clang +++ b/auto/clang @@ -278,30 +278,17 @@ nxt_feature_test="#include . 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" -- 2.47.3