• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/celt051/0001-fix-gnuc-prereq.patch
Jörg KrauseJörg Krause committed 0e9a2a9aad030 Apr 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Fix musl build
2
​
3
musl does not define __GNUC_PREREQ. Use patch from Alpine Linux
4
(http://git.alpinelinux.org/cgit/aports/plain/main/celt051/fix-gnuc-prereq.patch).
5
​
6
Fixes http://autobuild.buildroot.net/results/223/223ba6003bdd7e0c896455c21fa8fee943b4e716/
7
​
8
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
9
​
10
--- celt-0.5.1.3.orig/libcelt/ecintrin.h
11
+++ celt-0.5.1.3/libcelt/ecintrin.h
12
@@ -52,8 +52,7 @@
13
 /*Count leading zeros.
14
   This macro should only be used for implementing ec_ilog(), if it is defined.
15
   All other code should use EC_ILOG() instead.*/
16
-#ifdef __GNUC_PREREQ
17
-#if __GNUC_PREREQ(3,4)
18
+#if defined(__GNUC__) && ((__GNUC__<<16)+__GNUC_MINOR__) >= 0x304
19
 # if INT_MAX>=2147483647
20
 #  define EC_CLZ0 sizeof(unsigned)*CHAR_BIT
21
 #  define EC_CLZ(_x) (__builtin_clz(_x))
22
@@ -61,7 +60,6 @@
23
 #  define EC_CLZ0 sizeof(unsigned long)*CHAR_BIT
24
 #  define EC_CLZ(_x) (__builtin_clzl(_x))
25
 # endif
26
-#endif
27
 #endif
28
​
29
 #if defined(EC_CLZ)
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.