2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

libinput: Fix build with clang

Closes #276
This commit is contained in:
Dylan Araps 2021-07-12 14:27:49 +03:00
parent ab50b5f8c7
commit 17e1d6fad5
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -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"