contrib: gnutls: Remove one unnecessary level of ifdefs
authorMartin Storsjö <martin@martin.st>
Wed, 22 May 2019 10:06:44 +0000 (13:06 +0300)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 22 May 2019 10:20:14 +0000 (12:20 +0200)
The aarch64 assembly in gnutls still needs to be disabled on windows
in general though; the issue is that it unconditionally uses ELF
specific directives (.type, .size, .section), so the disabling isn't
related to any specific issue in clang, but only that gnutls' assembly
for this architecture isn't portable.

Add a comment to clarify the issue.

contrib/src/gnutls/rules.mak

index 8e51012..0a3c0b5 100644 (file)
@@ -65,12 +65,11 @@ endif
 endif
 ifdef HAVE_WIN32
        GNUTLS_CONF += --without-idn
-ifdef HAVE_CLANG
 ifeq ($(ARCH),aarch64)
+       # Gnutls' aarch64 assembly unconditionally uses ELF specific directives
        GNUTLS_CONF += --disable-hardware-acceleration
 endif
 endif
-endif
 
 ifdef HAVE_NACL
        GNUTLS_CONF += --disable-hardware-acceleration