From: Caleb Xu Date: Sat, 20 Jun 2020 04:12:15 +0000 (-0400) Subject: lib/md5-asm-x86_64.s: fix build with Apple Clang X-Git-Tag: v3.2.1pre1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b218de27027673d6bb7842388412f73cde93d210;p=thirdparty%2Frsync.git lib/md5-asm-x86_64.s: fix build with Apple Clang The Mach-O x86-64 model doesn't seem to support ".type" and ".size" directives in assembly. Add ifdefs that should allow for the file to build without issues in Apple Clang. --- diff --git a/lib/md5-asm-x86_64.s b/lib/md5-asm-x86_64.s index a3126151..44aa386d 100644 --- a/lib/md5-asm-x86_64.s +++ b/lib/md5-asm-x86_64.s @@ -27,9 +27,14 @@ .text .align 16 +#ifndef __apple_build_version__ .globl md5_process_asm .type md5_process_asm,@function md5_process_asm: +#else +.globl _md5_process_asm +_md5_process_asm: +#endif push %rbp push %rbx push %r12 @@ -689,5 +694,9 @@ md5_process_asm: pop %rbx pop %rbp ret +#ifndef __apple_build_version__ .L_md5_process_asm_end: .size md5_process_asm,.L_md5_process_asm_end-md5_process_asm +#else +L_md5_process_asm_end: +#endif