Skip to content

redhat/kernel.spec.template: add extra flags for tools build

With 01474dc7 ('tools/rtla: Use tools/build makefiles to build rtla') a feature check was added to ensure the build dependencies are installed. Due to a compiler/linker object type mismatch that test fails to build and incorrectly reports that the libtracefs dependency is not installed when in fact it is.

01:01:25 Auto-detecting system features:
01:01:25 ...                           libtraceevent: [on]
01:01:25 ...                              libtracefs: [OFF]
01:01:25
01:01:26 libtracefs is missing. Please install libtracefs-dev/libtracefs-devel
01:01:26 Makefile.config:46: *** Please, check the errors above..  Stop.

The feature check error being reported:

usr/bin/ld: /tmp/cc7X1j0w.o: relocation R_X86_64_32 against `.rodata'
can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value collect2:
error: ld returned 1 exit status

Signed-off-by: Scott Weaver scweaver@redhat.com

Edited by Scott Weaver

Merge request reports