flac: Fix build for powerpc. Closes #1775.
authorLeon Woestenberg <leon.woestenberg@gmail.com>
Fri, 12 Jan 2007 23:21:33 +0000 (23:21 +0000)
committerLeon Woestenberg <leon.woestenberg@gmail.com>
Fri, 12 Jan 2007 23:21:33 +0000 (23:21 +0000)
packages/flac/flac_1.1.2.bb

index cdd96bb..85ffc9b 100644 (file)
@@ -31,6 +31,9 @@ do_configure () {
        install -d ${S}/m4
        install -m 0644 ${WORKDIR}/xmms.m4 ${S}/m4/
        autotools_do_configure
+       # removes '-read-only-relocs' which is enabled for PowerPC builds.
+       # It makes the build fail, other archs are not affected. Fixes #1775.
+       sed -i 's/-Wl,-read_only_relocs,warning//g' src/libFLAC/Makefile
 }
 
 do_stage () {