diff --git a/srcpkgs/wlroots/patches/fix-cross.patch b/srcpkgs/wlroots/patches/fix-cross.patch new file mode 100644 index 00000000000..06ca341f57f --- /dev/null +++ b/srcpkgs/wlroots/patches/fix-cross.patch @@ -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 = [] + diff --git a/srcpkgs/wlroots/template b/srcpkgs/wlroots/template index 8b1f54255a0..b92a6327657 100644 --- a/srcpkgs/wlroots/template +++ b/srcpkgs/wlroots/template @@ -19,6 +19,8 @@ homepage="https://github.com/swaywm/wlroots" distfiles="https://github.com/swaywm/wlroots/archive/${version}.tar.gz" checksum=a8c480b1ab3e5fff2d2a38661a0f06eb96af43c1cac02dc02e180d7fa5e8a5fa +LDFLAGS="-lm" + post_install() { vlicense LICENSE }