• 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/flac/0001-configure-don-t-try-to-unset-g-from-CFLAGS.patch
Samuel MartinSamuel Martin committed ce49c7c852d02 Dec 2014
Raw file
Source viewDiff to previous
 
1
The sed expression is wrong, any flags with '-g' in any position gets
2
zapped, for example:
3
​
4
-mfloat-gprs=double (for powerpc e500) -> -mfloatprs=double.
5
​
6
Which gives build errors and is perfectly valid in real use scenarios to
7
switch from e500v1 (single precision) code to e500v2 (double precision) code.
8
​
9
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
10
​
11
diff -Nura flac-1.3.1.orig/configure flac-1.3.1/configure
12
--- flac-1.3.1.orig/configure   2014-11-27 20:43:29.921303105 -0300
13
+++ flac-1.3.1/configure    2014-11-27 20:45:33.460250179 -0300
14
@@ -19870,11 +19870,10 @@
15
 
16
 if test "x$debug" = xtrue; then
17
    CPPFLAGS="-DDEBUG $CPPFLAGS"
18
-   CFLAGS=$(echo "$CFLAGS" | sed 's/-g//')
19
-   CFLAGS="-g $CFLAGS"
20
+   CFLAGS=$(echo "-g $CFLAGS")
21
 else
22
    CPPFLAGS="-DNDEBUG $CPPFLAGS"
23
-   CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//;s/-g//')
24
+   CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//')
25
    CFLAGS="-O3 -funroll-loops $CFLAGS"
26
 fi
27
 
  • 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.