diff options
author | Cem Keylan <cem@ckyln.com> | 2020-08-03 21:29:37 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-08-03 21:29:37 +0300 |
commit | 452372b3f917edeea71d250b228d2cf673bb4f70 (patch) | |
tree | 487624d8080a46df23f8e55f3fed1ec2d982a952 /core/libelf/build | |
parent | 7f2e3be5544a74bb0d5207897dff3d21ec1b512a (diff) | |
download | repository-452372b3f917edeea71d250b228d2cf673bb4f70.tar.gz |
libelf: switch to elfutils
Diffstat (limited to 'core/libelf/build')
-rwxr-xr-x | core/libelf/build | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/core/libelf/build b/core/libelf/build index 94916479..bd5cf230 100755 --- a/core/libelf/build +++ b/core/libelf/build @@ -1,11 +1,23 @@ #!/bin/sh -e -sed 's/-I/-isystem /g' libelf.pc.in > _ -cat _ > libelf.pc.in; rm -f _ +patch -p1 < musl-decls.patch + +# Build sometimes forces -Werror. +export CFLAGS="$CFLAGS -Wno-error" + +# Disable configure error for missing argp. +sed -i 's/as_fn_error.*libargp/: "/g' configure + +# Don't compile two unrelated C files which require argp. +sed -i 's/color.*printversion../#/g' lib/Makefile.in ./configure \ --prefix=/usr \ - --enable-nls=auto + --disable-symbol-versioning \ + --disable-debuginfod \ + --disable-nls -make -make prefix="$1/usr" install +# Skip the default make target and build only what we need. +make -C lib +make -C libelf +make -C libelf DESTDIR="$1" install |