Configure: don't probe for --noexecstack assembler option on Darwin.
authorAndy Polyakov <appro@openssl.org>
Fri, 17 Aug 2018 12:29:59 +0000 (14:29 +0200)
committerAndy Polyakov <appro@openssl.org>
Sat, 18 Aug 2018 16:23:22 +0000 (18:23 +0200)
The option has no meaning on Darwin, but it can bail out in combination
with -fembed-bitcode or -no-integrated-as...

Reviewed-by: Richard Levitte <levitte@openssl.org>
Configure

index 2eb8533f5b038f4f0d7e4b945f34248a87c4429a..3baa8ce016f81bad5149fc89e79f4fb57d0dcc7e 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1441,7 +1441,7 @@ if (!$disabled{makedepend}) {
     }
 }
 
-if (!$disabled{asm}) {
+if (!$disabled{asm} && !$predefined{__MACH__} && $^O ne 'VMS') {
     # probe for -Wa,--noexecstack option...
     if ($predefined{__clang__}) {
         # clang has builtin assembler, which doesn't recognize --help,
@@ -1449,7 +1449,7 @@ if (!$disabled{asm}) {
         # supported platforms even when it's meaningless. In other words
         # probe would fail, but probed option always accepted...
         push @{$config{cflags}}, "-Wa,--noexecstack", "-Qunused-arguments";
-    } elsif ($^O ne 'VMS') {
+    } else {
         my $cc = $config{CROSS_COMPILE}.$config{CC};
         open(PIPE, "$cc -Wa,--help -c -o null.$$.o -x assembler /dev/null 2>&1 |");
         while(<PIPE>) {