alicelinux

A lightweight musl + clang/llvm + libressl + busybox distro
git clone https://codeberg.org/emmett1/alicelinux
Log | Files | Refs | README | LICENSE

fix-musl-objtool.patch (838B)


      1 objtool is using the headers provided by kernel-libc-headers, which are kernel version 5.10, so
      2 they use __always_inline instead of inline, and musl doesn't define __always_inline (glibc does)
      3 
      4 --- a/tools/objtool/Makefile
      5 +++ b/tools/objtool/Makefile
      6 @@ -32,7 +32,7 @@ INCLUDES := -I$(srctree)/tools/include \
      7  # Note, EXTRA_WARNINGS here was determined for CC and not HOSTCC, it
      8  # is passed here to match a legacy behavior.
      9  WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed -Wno-nested-externs
     10 -OBJTOOL_CFLAGS := -Werror $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS)
     11 +OBJTOOL_CFLAGS := -Werror $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS) -D__always_inline=inline
     12  OBJTOOL_LDFLAGS := $(LIBELF_LIBS) $(LIBSUBCMD) $(KBUILD_HOSTLDFLAGS)
     13  
     14  # Allow old libelf to be used: