Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153398379
D21284.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D21284.diff
View Options
Index: head/audio/flac/Makefile
===================================================================
--- head/audio/flac/Makefile
+++ head/audio/flac/Makefile
@@ -25,7 +25,8 @@
--with-ogg="${LOCALBASE}" \
--disable-doxygen-docs \
--disable-thorough-tests \
- --disable-xmms-plugin
+ --disable-xmms-plugin \
+ --disable-vsx
INSTALL_TARGET= install-strip
TEST_TARGET= check
Index: head/audio/flac/files/patch-src_libFLAC_cpu.c
===================================================================
--- head/audio/flac/files/patch-src_libFLAC_cpu.c
+++ head/audio/flac/files/patch-src_libFLAC_cpu.c
@@ -0,0 +1,24 @@
+--- src/libFLAC/cpu.c.orig 2019-08-15 00:05:19 UTC
++++ src/libFLAC/cpu.c
+@@ -245,11 +245,21 @@ ppc_cpu_info (FLAC__CPUInfo *info)
+ #define PPC_FEATURE2_ARCH_2_07 0x80000000
+ #endif
+
++#ifdef __linux__
+ if (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_3_00) {
+ info->ppc.arch_3_00 = true;
+ } else if (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_2_07) {
+ info->ppc.arch_2_07 = true;
+ }
++#elif defined(__FreeBSD__)
++ long hwcaps;
++ elf_aux_info(AT_HWCAP2, &hwcaps, sizeof(hwcaps));
++ if (hwcaps & PPC_FEATURE2_ARCH_3_00) {
++ info->ppc.arch_3_00 = true;
++ } else if (hwcaps & PPC_FEATURE2_ARCH_2_07) {
++ info->ppc.arch_2_07 = true;
++ }
++#endif
+ #else
+ info->ppc.arch_2_07 = false;
+ info->ppc.arch_3_00 = false;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 10:35 PM (5 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31937110
Default Alt Text
D21284.diff (1 KB)
Attached To
Mode
D21284: audio/flac: fix build on powerpc64
Attached
Detach File
Event Timeline
Log In to Comment