Skip to content

Commit

Permalink
elfutils: switch to upstream build method
Browse files Browse the repository at this point in the history
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 adamg committed Apr 14, 2019
1 parent 6cf0997 commit bcd6369
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 27 deletions.
27 changes: 0 additions & 27 deletions packages/devel/elfutils/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
@@ -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.