Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not build glibc for mipsel with -O3 enabled (-O3 builds a broken g…
…libc).

Signed-off-by: Davide Bettio <davide.bettio@ispirata.com>
  • Loading branch information
bettio committed Mar 8, 2014
1 parent 51657ab commit e23cc8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions glibc.changes
@@ -1,3 +1,6 @@
* Sat Mar 08 2014 Davide Bettio <davide.bettio@ispirata.com> - 2.18
- Do not build glibc for mipsel with -O3 enabled

* Wed Jan 01 2014 Carsten Munk <carsten.munk@jollamobile.com> - 2.18
- Upgrade to 2.18

Expand Down
4 changes: 4 additions & 0 deletions glibc.spec
Expand Up @@ -266,7 +266,11 @@ mkdir $builddir ; cd $builddir
echo libdir=/usr/lib > configparms
echo slibdir=/lib >> configparms
echo BUILD_CC=gcc >> configparms
%ifarch mipsel
build_CFLAGS="$BuildFlags -g -O1 $*"
%else
build_CFLAGS="$BuildFlags -g -O3 $*"
%endif
export MAKEINFO=:
../configure CC="$GCC" CXX="$GXX" CFLAGS="$build_CFLAGS" \
--prefix=%{_prefix} \
Expand Down

0 comments on commit e23cc8d

Please sign in to comment.