Date: Sun, 28 May 2017 19:11:40 +0000 (UTC) From: Thomas Zander <riggs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r441921 - in head/audio/musicpd: . files Message-ID: <201705281911.v4SJBerQ051327@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: riggs Date: Sun May 28 19:11:40 2017 New Revision: 441921 URL: https://svnweb.freebsd.org/changeset/ports/441921 Log: Fix build on aarch64 (endian detection) Submitted by: theraven (via mail) MFH: 2017Q2 (build fix blanket) Added: head/audio/musicpd/files/patch-src_system_ByteOrder.hxx (contents, props changed) Modified: head/audio/musicpd/Makefile Modified: head/audio/musicpd/Makefile ============================================================================== --- head/audio/musicpd/Makefile Sun May 28 18:13:33 2017 (r441920) +++ head/audio/musicpd/Makefile Sun May 28 19:11:40 2017 (r441921) @@ -28,7 +28,6 @@ LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBA #Workaround (transient?) link error with libwrap CONFIGURE_ARGS+=--disable-libwrap -BROKEN_aarch64= Does not build: fatal error: 'endian.h' file not found BROKEN_powerpc64= Does not build on powerpc64 PORTDOCS= AUTHORS README.md COPYING NEWS Added: head/audio/musicpd/files/patch-src_system_ByteOrder.hxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/musicpd/files/patch-src_system_ByteOrder.hxx Sun May 28 19:11:40 2017 (r441921) @@ -0,0 +1,19 @@ +--- src/system/ByteOrder.hxx.orig 2017-05-26 09:10:52 UTC ++++ src/system/ByteOrder.hxx +@@ -34,7 +34,15 @@ + + #include <stdint.h> + +-#if defined(__i386__) || defined(__x86_64__) || defined(__ARMEL__) ++#if defined(__BYTE_ORDER__) ++# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ++# define IS_LITTLE_ENDIAN true ++# define IS_BIG_ENDIAN false ++# else ++# define IS_LITTLE_ENDIAN false ++# define IS_BIG_ENDIAN true ++# endif ++#elif defined(__i386__) || defined(__x86_64__) || defined(__ARMEL__) + /* well-known little-endian */ + # define IS_LITTLE_ENDIAN true + # define IS_BIG_ENDIAN false
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705281911.v4SJBerQ051327>