Date: Sunday, June 7, 2015 @ 18:30:02 Author: foutrelis Revision: 134957
Fix build with glibc 2.20 (r9106 upstream) Added: sdcc/trunk/glibc220-build-fix.patch Modified: sdcc/trunk/PKGBUILD --------------------------+ PKGBUILD | 10 ++++++++-- glibc220-build-fix.patch | 13 +++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-06-07 14:59:39 UTC (rev 134956) +++ PKGBUILD 2015-06-07 16:30:02 UTC (rev 134957) @@ -13,12 +13,18 @@ optdepends=('python') url="http://sdcc.sourceforge.net/" options=(!strip staticlibs) -source=(http://downloads.sourceforge.net/sourceforge/sdcc/$pkgname-src-$pkgver.tar.bz2) -md5sums=('92db2ea2526f6cef412547bb1e759a48') +source=(http://downloads.sourceforge.net/sourceforge/sdcc/$pkgname-src-$pkgver.tar.bz2 + glibc220-build-fix.patch) +md5sums=('92db2ea2526f6cef412547bb1e759a48' + 'de3be2a60baaafbdbfe5efaaacbb3028') prepare() { cd $srcdir/$pkgname-$pkgver sed -i 's|CC -E|CC -O2 -E|g' support/sdbinutils/libiberty/configure + + # Fix build with glibc 2.20 + # http://sourceforge.net/p/sdcc/bugs/2303/ + patch -Np0 -i ../glibc220-build-fix.patch } build() { Added: glibc220-build-fix.patch =================================================================== --- glibc220-build-fix.patch (rev 0) +++ glibc220-build-fix.patch 2015-06-07 16:30:02 UTC (rev 134957) @@ -0,0 +1,13 @@ +Index: sdas/linksrc/Makefile.in +=================================================================== +--- sdas/linksrc/Makefile.in (revision 9105) ++++ sdas/linksrc/Makefile.in (revision 9106) +@@ -35,7 +35,7 @@ + VPATH = @srcdir@ + + CPPFLAGS = @CPPFLAGS@ -I.. -I$(srcdir)/.. +-CFLAGS = @CFLAGS@ @WALL_FLAG@ -DINDEXLIB -DUNIX -I. -I$(srcdir) ++CFLAGS = @CFLAGS@ @WALL_FLAG@ -DINDEXLIB -DUNIX -I. -I$(srcdir) --std=c99 + LDFLAGS = @LDFLAGS@ + + OBJDIR = obj