aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/elfutils/abuild
blob: 99cf367f3392731d23c777b72fb09a751302eb2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
}