package/lua-lunix: fix build with musl
PATCH 1/1 package/lua-lunix: fix build with musl
see http://autobuild.buildroot.net/results/7d192a0a1d58d258b77906cf936949b2f47373cd/
Signed-off-by Francois Perrad <[email protected]>
--- .../0002-remove-link-with-librt.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 package/lua-lunix/0002-remove-link-with-librt.patch
package/lua-lunix/0002-remove-link-with-librt.patch new file +36 -0
@@ -0,0 +1,36 @@ +From aeaff83b9ae42547b8728edac000f3d41d5e44aa Mon Sep 17 00:00:00 2001 +From: Francois Perrad <[email protected]> +Date: Sat, 17 Jul 2021 13:21:38 +0200 +Subject: [PATCH] remove link with librt + +librt is not available with musl + +Signed-off-by: Francois Perrad <[email protected]> +--- + lunix-rel-20170920/lunix-20170920-1.rockspec | 10 ---------- + 1 file changed, 10 deletions(-) + +diff --git a/lunix-rel-20170920/lunix-20170920-1.rockspec b/lunix-rel-20170920/lunix-20170920-1.rockspec +index 741179d..76cafeb 100644 +--- a/lunix-rel-20170920/lunix-20170920-1.rockspec ++++ b/lunix-rel-20170920/lunix-20170920-1.rockspec +@@ -26,16 +26,6 @@ build = { + }; + }; + platforms = { +- linux = { +- modules = { +- ["unix"] = { +- libraries = { +- -- glibc <= 2.17 needs to link with librt +- "rt"; +- }; +- }; +- }; +- }; + osx = { + modules = { + ["unix"] = { +-- +2.30.2 +
Signature · 1 line
2.30.2
PATCH 1/1 package/lua-lunix: fix build with musl
Quoted 7 lines · On Sat, 17 Jul 2021 15:21:44 +0200 Francois Perrad <[email protected]> wrote:
see http://autobuild.buildroot.net/results/7d192a0a1d58d258b77906cf936949b2f47373cd/
Signed-off-by Francois Perrad <[email protected]>--- .../0002-remove-link-with-librt.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 package/lua-lunix/0002-remove-link-with-librt.patch
What makes this patch work is that we don't support glibc < 2.17 for the target, so indeed we no longer care about linking with librt.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com