diff --git a/pjproject-ppc64.patch b/pjproject-ppc64.patch new file mode 100644 index 0000000..50fe50c --- /dev/null +++ b/pjproject-ppc64.patch @@ -0,0 +1,19 @@ +--- pjproject-2.4/pjlib/include/pj/config.h.orig 2015-05-05 11:41:56.300102158 +0100 ++++ pjproject-2.4/pjlib/include/pj/config.h 2015-05-05 11:44:45.400282720 +0100 +@@ -287,7 +287,15 @@ + # define PJ_M_NAME "powerpc" + # define PJ_HAS_PENTIUM 0 + # if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN +-# error Endianness must be declared for this processor ++# if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) ++# define PJ_IS_LITTLE_ENDIAN 1 ++# define PJ_IS_BIG_ENDIAN 0 ++# elif (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) ++# define PJ_IS_LITTLE_ENDIAN 0 ++# define PJ_IS_BIG_ENDIAN 1 ++# else ++# error Endianness must be declared for this processor ++# endif + # endif + + #elif defined (PJ_M_NIOS2) || defined(__nios2) || defined(__nios2__) || \ diff --git a/pjproject.spec b/pjproject.spec index e45b01a..894ecef 100644 --- a/pjproject.spec +++ b/pjproject.spec @@ -19,6 +19,8 @@ Patch2: pjproject_fixup_pc_file.patch Patch3: pjproject-armv7.patch # Add aarch64 Patch4: pjproject-aarch64.patch +# Fix ppc64 endiannes +Patch5: pjproject-ppc64.patch BuildRequires: alsa-lib-devel BuildRequires: gsm-devel @@ -66,6 +68,7 @@ Header information for: %patch2 -p1 -b .pkg %patch3 -p1 -b .arm %patch4 -p1 -b .aarch64 +%patch5 -p1 -b .ppc64 # make sure we don't bundle these third-party libraries # (They're excluded through ./configure, but this is an