Skip to content
Permalink
Browse files

elfutils: switch to upstream build method

Just add a patch so that the elfutils executables (eu-ar, eu-nm, ...)
aren't built/installed and use upstream build otherwise.

Signed-off-by: Matthias Reichl <hias@horus.com>
  • Loading branch information...
HiassofT authored and adamg88 committed Apr 1, 2019
1 parent 6cf0997 commit bcd63690d84ac56e5383f2ac6035f978f7e9a6d2
@@ -25,30 +25,3 @@ PKG_CONFIGURE_OPTS_HOST="utrace_cv_cc_biarch=false \
--with-zlib \
--without-bzlib \
--without-lzma"

makeinstall_host() {
make DESTDIR="$INSTALL" -C libelf install
}

make_target() {
make V=1 -C libelf libelf.a
make V=1 -C libebl libebl.a
make V=1 -C libdwfl libdwfl.a
make V=1 -C libdwelf libdwelf.a
make V=1 -C libdw libdw.a
}

makeinstall_target() {
make DESTDIR="$SYSROOT_PREFIX" -C libelf install-includeHEADERS install-pkgincludeHEADERS
make DESTDIR="$SYSROOT_PREFIX" -C libdwfl install-pkgincludeHEADERS
make DESTDIR="$SYSROOT_PREFIX" -C libdw install-includeHEADERS install-pkgincludeHEADERS

mkdir -p $SYSROOT_PREFIX/usr/lib
cp libelf/libelf.a $SYSROOT_PREFIX/usr/lib
cp libebl/libebl.a $SYSROOT_PREFIX/usr/lib
cp libdwfl/libdwfl.a $SYSROOT_PREFIX/usr/lib
cp libdw/libdw.a $SYSROOT_PREFIX/usr/lib

mkdir -p $SYSROOT_PREFIX/usr/include/elfutils
cp version.h $SYSROOT_PREFIX/usr/include/elfutils
}
@@ -0,0 +1,11 @@
--- elfutils-0.176/Makefile.am.orig 2019-04-01 12:59:25.141077178 +0200
+++ elfutils-0.176/Makefile.am 2019-04-01 12:59:34.157100775 +0200
@@ -28,7 +28,7 @@

# Add doc back when we have some real content.
SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \
- backends src po tests
+ backends po tests

EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
COPYING COPYING-GPLV2 COPYING-LGPLV3

0 comments on commit bcd6369

Please sign in to comment.
You can’t perform that action at this time.