FreeBSD Bugzilla – Attachment 206708 Details for
Bug 239870
audio/flac: fix build on powerpc64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v2
flac.patch (text/plain), 1.64 KB, created by
Piotr Kubaj
on 2019-08-19 19:59:40 UTC
(
hide
)
Description:
v2
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2019-08-19 19:59:40 UTC
Size:
1.64 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 509250) >+++ Makefile (working copy) >@@ -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: files/patch-src_libFLAC_cpu.c >=================================================================== >--- files/patch-src_libFLAC_cpu.c (nonexistent) >+++ files/patch-src_libFLAC_cpu.c (working copy) >@@ -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; > >Property changes on: files/patch-src_libFLAC_cpu.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
pkubaj
:
maintainer-approval?
(
naddy
)
Actions:
View
|
Diff
Attachments on
bug 239870
:
206567
| 206708