[gnutls-devel] GnuTLS | configure.ac: check if compiler supports -Wa, -march=all (!1579)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Tue May 3 18:52:13 CEST 2022
John Ralls commented on a discussion: https://gitlab.com/gnutls/gnutls/-/merge_requests/1579#note_933707270
Indeed, config.log says
>configure:11495: checking whether the compiler supports -Wa,-march=all
configure:11509: result: yes
Trying the test at the command line:
```
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -Wa,-march=all -c test.s
Segmentation fault: 11
```
But that's *not* what your commit does. From configure:
```
if "$CCAS" "$AARCH64_CCASFLAGS" -c conftest.c >/dev/null 2>&1; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
AARCH64_CCASFLAGS=
fi
```
and in the shell
```
$ > /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -Wa,-march=all -c test.c
$ >
```
The difference is that configure is testing a C compile not an assembler run.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1579#note_933707270
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20220503/615d9b23/attachment-0001.html>
More information about the Gnutls-devel
mailing list