refind: support musl libc

This commit is contained in:
Doan Tran Cong Danh 2019-11-11 17:26:42 +07:00 committed by Juan RP
parent 0f7689906e
commit 70999ba63f
2 changed files with 34 additions and 2 deletions

View file

@ -0,0 +1,33 @@
--- filesystems/zstd/fse_decompress.c.orig 2019-11-11 17:00:57.423347660 +0700
+++ filesystems/zstd/fse_decompress.c 2019-11-11 17:01:52.654692140 +0700
@@ -40,7 +40,7 @@
/* **************************************************************
* Compiler specifics
****************************************************************/
-#define FORCE_INLINE static __always_inline
+#define FORCE_INLINE static inline __attribute__((__always_inline__))
/* **************************************************************
* Includes
--- filesystems/zstd/zstd_internal.h.orig 2019-11-11 15:56:42.258217148 +0700
+++ filesystems/zstd/zstd_internal.h 2019-11-11 16:04:09.433867777 +0700
@@ -20,7 +20,7 @@
/*-*******************************************************
* Compiler specifics
*********************************************************/
-#define FORCE_INLINE static __always_inline
+#define FORCE_INLINE static inline __attribute__((__always_inline__))
#define FORCE_NOINLINE static /*noinline*/
/*-*************************************
--- filesystems/zstd/huf_decompress.c.orig 2019-11-11 17:00:46.487280468 +0700
+++ filesystems/zstd/huf_decompress.c 2019-11-11 17:01:20.095488026 +0700
@@ -40,7 +40,7 @@
/* **************************************************************
* Compiler specifics
****************************************************************/
-#define FORCE_INLINE static __always_inline
+#define FORCE_INLINE static inline __attribute__((__always_inline__))
/* **************************************************************
* Dependencies

View file

@ -13,8 +13,7 @@ checksum=39baf140603951da098238c1cbf4176fdd7d4a45fab0399e9985ad7368034dae
conf_files="/etc/default/refind-kernel-hook.conf"
case "$XBPS_TARGET_MACHINE" in
x86_64|i686|aarch64) ;;
*-musl) broken="requires patching on musl arches" ;;
x86_64*|i686*|aarch64*) ;;
*) broken="${XBPS_TARGET_MACHINE} is unsupported" ;;
esac