From 444274e4277272469e38dbe8fefe40d025e08043 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 22 Mar 2016 20:03:27 +0100 Subject: [PATCH] rpi-userland: get rid of -Werror... too many warnings. --- srcpkgs/rpi-userland/template | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/srcpkgs/rpi-userland/template b/srcpkgs/rpi-userland/template index be23e26f5a3..715c8ce4c37 100644 --- a/srcpkgs/rpi-userland/template +++ b/srcpkgs/rpi-userland/template @@ -16,9 +16,6 @@ homepage="https://github.com/raspberrypi/userland" distfiles="https://github.com/raspberrypi/userland/archive/${_githash}.tar.gz" checksum=601ad724e536272a43a02ae8217bd21cbd3e9a17ca1adc70b1d28fcb50864d44 -broken="too many compiler warnings and -Werror turned on" - -CFLAGS="-Wno-error" LDFLAGS="-Wl,--no-as-needed" only_for_archs="armv6l armv6l-musl armv7l armv7l-musl" @@ -40,6 +37,11 @@ shlib_provides=" libGLESv2.so libEGL.so" +pre_configure() { + for f in $(find ${wrksrc} -type f -name CMakeLists.txt); do + sed -i 's,-Werror,,g' $f + done +} post_install() { vmkdir usr/lib/pkgconfig vcopy ${FILESDIR}/*.pc usr/lib/pkgconfig