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