From 17e1d6fad5fd54d83cf1b430e659a5b948dbd727 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 12 Jul 2021 14:27:49 +0300 Subject: [PATCH] libinput: Fix build with clang Closes #276 --- wayland/libinput/build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wayland/libinput/build b/wayland/libinput/build index bc951209..0017a01b 100755 --- a/wayland/libinput/build +++ b/wayland/libinput/build @@ -16,6 +16,11 @@ for pkg in mtdev evdev; do ( make DESTDIR="$OLDPWD" install ) done +# Build fails with clang due to -Werror (forced on) and +# -Wunused-command-line-argument which is triggered by. +# the below CFLAGS. +export CFLAGS="-Wno-unused-command-line-argument $CFLAGS" + export PKG_CONFIG_PATH="$PWD/usr/lib/pkgconfig" export CFLAGS="$CFLAGS -I$PWD/usr/include -L$PWD/usr/lib" export CFLAGS="$CFLAGS -I$PWD/usr/include/libevdev-1.0"