Skip to content

Latest commit

 

History

History
38 lines (34 loc) · 1.33 KB

0010-flac.git-44036c9a.patch

File metadata and controls

38 lines (34 loc) · 1.33 KB
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Peter Seiderer <ps.report@gmx.net>
Date: Thu, 19 Sep 2019 19:18:04 +0000 (+0200)
Subject: configure.ac: check for sys/auxv.h before defining FLAC__CPU_PPC
X-Git-Url: http://git.xiph.org/?p=flac.git;a=commitdiff_plain;h=44036c9a9b45d03373fe90e9c112852bfc054c51
configure.ac: check for sys/auxv.h before defining FLAC__CPU_PPC
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
Note: One of the buildroot autobuilder provided powerpc toolchains
seem to not provide the sys/auxv.h header file, resulting in a
compile failure (see [1] for details).
[1] http://lists.busybox.net/pipermail/buildroot/2019-September/259732.html
---
diff --git a/configure.ac b/configure.ac
index 0228a124..64cb3f2f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,7 +144,7 @@ case "$host_cpu" in
powerpc64|powerpc64le)
cpu_ppc64=true
cpu_ppc=true
- AC_DEFINE(FLAC__CPU_PPC)
+ AC_CHECK_HEADER(sys/auxv.h, AC_DEFINE(FLAC__CPU_PPC))
AH_TEMPLATE(FLAC__CPU_PPC, [define if building for PowerPC])
AC_DEFINE(FLAC__CPU_PPC64)
AH_TEMPLATE(FLAC__CPU_PPC64, [define if building for PowerPC64])
@@ -152,7 +152,7 @@ case "$host_cpu" in
;;
powerpc|powerpcle)
cpu_ppc=true
- AC_DEFINE(FLAC__CPU_PPC)
+ AC_CHECK_HEADER(sys/auxv.h, AC_DEFINE(FLAC__CPU_PPC))
AH_TEMPLATE(FLAC__CPU_PPC, [define if building for PowerPC])
asm_optimisation=$asm_opt
;;