package/oprofile: fix build with binutils >= 2.34
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 25 Mar 2020 06:26:34 +0000 (07:26 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 29 Mar 2020 19:19:12 +0000 (21:19 +0200)
commit8883b8387a261f6efba1e6b41e7a21330911171c
treea7d442d6a3f0ca62b4df26b94fd5c8175affacef
parentc9b2f2e242b71e78a5beebb9efaba11d9ebd98f4
package/oprofile: fix build with binutils >= 2.34

The libbfd library provided by binutils unfortunately changed its API
in binutils >= 2.34. This is causing some build failures at the moment
on architectures such as ARC that are using a very recent binutils
version, but it would also cause build failures on other architectures
once they start using binutils 2.34.

We fix this build issue by backporting an upstream oprofile
patch. However, this patch touches configure.ac, which means we need
to autoreconf, which needs another fix in configure.ac for autoreconf
to succeed.

With all that in place, this commit fixes:

  http://autobuild.buildroot.net/results/583d281c6cd2aecb65556080b379db24101ae3a8/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/oprofile/0002-configure.ac-add-foreign-option-to-AM_INIT_AUTOMAKE.patch [new file with mode: 0644]
package/oprofile/0003-Macro-wrappers-to-handle-the-binutils-2.34-api-chang.patch [new file with mode: 0644]
package/oprofile/oprofile.mk