mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 12:07:47 +03:00
elfutils: Don't use crossAttrs
This commit is contained in:
parent
46b03cd5b2
commit
4116754f45
@ -28,46 +28,40 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
crossAttrs = {
|
||||
# This program does not cross-build fine. So I only cross-build some parts
|
||||
# I need for the linux perf tool.
|
||||
# On the awful cross-building:
|
||||
# http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2005
|
||||
#
|
||||
# I wrote this testing for the nanonote.
|
||||
|
||||
/* Having bzip2 will harm, because anything using elfutils
|
||||
as buildInput cross-building, will not be able to run 'bzip2' */
|
||||
propagatedBuildInputs = [ zlib.crossDrv ];
|
||||
buildPhase = if stdenv.hostPlatform == stdenv.buildPlatform then null else ''
|
||||
pushd libebl
|
||||
make
|
||||
popd
|
||||
pushd libelf
|
||||
make
|
||||
popd
|
||||
pushd libdwfl
|
||||
make
|
||||
popd
|
||||
pushd libdw
|
||||
make
|
||||
popd
|
||||
'';
|
||||
|
||||
# This program does not cross-build fine. So I only cross-build some parts
|
||||
# I need for the linux perf tool.
|
||||
# On the awful cross-building:
|
||||
# http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2005
|
||||
#
|
||||
# I wrote this testing for the nanonote.
|
||||
buildPhase = ''
|
||||
pushd libebl
|
||||
make
|
||||
popd
|
||||
pushd libelf
|
||||
make
|
||||
popd
|
||||
pushd libdwfl
|
||||
make
|
||||
popd
|
||||
pushd libdw
|
||||
make
|
||||
popd
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
pushd libelf
|
||||
make install
|
||||
popd
|
||||
pushd libdwfl
|
||||
make install
|
||||
popd
|
||||
pushd libdw
|
||||
make install
|
||||
popd
|
||||
cp version.h $out/include
|
||||
'';
|
||||
};
|
||||
installPhase = if stdenv.hostPlatform == stdenv.buildPlatform then null else ''
|
||||
pushd libelf
|
||||
make install
|
||||
popd
|
||||
pushd libdwfl
|
||||
make install
|
||||
popd
|
||||
pushd libdw
|
||||
make install
|
||||
popd
|
||||
cp version.h $out/include
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://sourceware.org/elfutils/;
|
||||
|
Loading…
Reference in New Issue
Block a user