svn commit: r556912 - head/net/libilbc/files

Piotr Kubaj pkubaj at anongoth.pl
Thu Dec 3 17:15:28 UTC 2020


arch(7) says there's no __powerpc64le__ macro. There are:
           powerpc         __powerpc__
           powerpcspe      __powerpc__, __SPE__
           powerpc64       __powerpc__, __powerpc64__
           powerpc64le     __powerpc__, __powerpc64__

So users should check for __powerpc64__ (to check for 64-bit POWER) and check value of __BYTE_ORDER__ (to check for actual endianness).

arch(7) also says riscv64 is little-endian, but this patch marks it as big-endian:
           riscv64         little        signed
           riscv64sf       little        signed

On 20-12-03 16:47:10, Mark Linimon wrote:
> Author: linimon
> Date: Thu Dec  3 16:47:09 2020
> New Revision: 556912
> URL: https://svnweb.freebsd.org/changeset/ports/556912
> 
> Log:
>   Attempt to fix the build on both powerpc64le and riscv64.
>   
>   This patch should be upstreamed.
>   
>   Approved by:	portmgr (tier-2 blanket)
> 
> Modified:
>   head/net/libilbc/files/patch-typedefs.h
> 
> Modified: head/net/libilbc/files/patch-typedefs.h
> ==============================================================================
> --- head/net/libilbc/files/patch-typedefs.h	Thu Dec  3 16:39:33 2020	(r556911)
> +++ head/net/libilbc/files/patch-typedefs.h	Thu Dec  3 16:47:09 2020	(r556912)
> @@ -1,10 +1,14 @@
>  --- typedefs.h.orig	2014-12-14 19:34:22 UTC
>  +++ typedefs.h
> -@@ -26,6 +26,12 @@
> - #elif defined(__aarch64__)
> +@@ -23,9 +23,15 @@
> + #define WEBRTC_ARCH_X86_64
>   #define WEBRTC_ARCH_64_BITS
>   #define WEBRTC_ARCH_LITTLE_ENDIAN
> -+#elif defined(__powerpc64__) || defined(__sparc64__)
> +-#elif defined(__aarch64__)
> ++#elif defined(__aarch64__) || defined(__powerpc64le__)
> + #define WEBRTC_ARCH_64_BITS
> + #define WEBRTC_ARCH_LITTLE_ENDIAN
> ++#elif defined(__powerpc64__) || defined(__riscv) || defined(__sparc64__)
>  +#define WEBRTC_ARCH_64_BITS
>  +#define WEBRTC_ARCH_BIG_ENDIAN
>  +#elif defined(__powerpc__)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20201203/3190d247/attachment.sig>


More information about the svn-ports-head mailing list