aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/elfutils/abuild
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
commit239ced844ea434e623686094af3de168f90e4391 (patch)
tree541d2c575f3b3832ca1a3087bde3f65dc74a8f89 /repos/extra/elfutils/abuild
parent3f80bb67166389b3acabf8f024ee1ad1a4364c1f (diff)
downloadalicelinux-239ced844ea434e623686094af3de168f90e4391.tar.gz
alicelinux-239ced844ea434e623686094af3de168f90e4391.zip
repos updated
Diffstat (limited to 'repos/extra/elfutils/abuild')
-rw-r--r--repos/extra/elfutils/abuild30
1 files changed, 30 insertions, 0 deletions
diff --git a/repos/extra/elfutils/abuild b/repos/extra/elfutils/abuild
new file mode 100644
index 00000000..99cf367f
--- /dev/null
+++ b/repos/extra/elfutils/abuild
@@ -0,0 +1,30 @@
+name=elfutils
+version=0.191
+release=1
+source="https://sourceware.org/ftp/$name/$version/$name-$version.tar.bz2
+ musl.patch"
+
+build() {
+ # get from KISS
+ # Build sometimes forces -Werror.
+ export CFLAGS="$CFLAGS -Wno-error"
+
+ sh ./configure \
+ --prefix=/usr \
+ --disable-symbol-versioning \
+ --disable-debuginfod \
+ --disable-libdebuginfod \
+ --without-zstd \
+ ac_cv_c99=yes # Override check for Clang.
+
+ # Utility functions that need argp and fts, not strictly necessary
+ # for the library to function
+ :>libdwfl/argp-std.c
+ :>libdwfl/linux-kernel-modules.c
+
+ # Useless stuff
+ printf '%s\n' "all:" "install:" > src/Makefile
+
+ make
+ make install
+}