wlroots: fix cross

This commit is contained in:
maxice8 2019-02-28 10:07:42 -03:00
parent 056b10ac8e
commit de6cf13f59
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,16 @@
diff --git meson.build meson.build
index 56c3f6a..89c393b 100644
--- meson.build
+++ meson.build
@@ -64,8 +64,8 @@ udev = dependency('libudev')
pixman = dependency('pixman-1')
libcap = dependency('libcap', required: get_option('libcap'))
logind = dependency('lib' + get_option('logind-provider'), required: get_option('logind'), version: '>=237')
-math = cc.find_library('m')
-rt = cc.find_library('rt')
+math = cc.find_library('m', required: false)
+rt = cc.find_library('rt', required: false)
wlr_parts = []
wlr_deps = []

View File

@ -19,6 +19,8 @@ homepage="https://github.com/swaywm/wlroots"
distfiles="https://github.com/swaywm/wlroots/archive/${version}.tar.gz" distfiles="https://github.com/swaywm/wlroots/archive/${version}.tar.gz"
checksum=a8c480b1ab3e5fff2d2a38661a0f06eb96af43c1cac02dc02e180d7fa5e8a5fa checksum=a8c480b1ab3e5fff2d2a38661a0f06eb96af43c1cac02dc02e180d7fa5e8a5fa
LDFLAGS="-lm"
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE
} }