diff options
| author | Jan Stancek <[email protected]> | 2024-11-12 09:21:33 +0100 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-11-13 18:43:46 -0800 |
| commit | 05a318b4fc13f7eef85e22780a274cb206664533 (patch) | |
| tree | 19b6da29cc2ed9640700dacfa060d9e41dad1e60 /tools/perf/scripts/python | |
| parent | c3b3eb565bd773b67d4789bf8a8b164e2b5e03be (diff) | |
tools: ynl: extend CFLAGS to keep options from environment
Package build environments like Fedora rpmbuild introduced hardening
options (e.g. -pie -Wl,-z,now) by passing a -spec option to CFLAGS
and LDFLAGS.
ynl Makefiles currently override CFLAGS but not LDFLAGS, which leads
to a mismatch and build failure:
CC sample devlink
/usr/bin/ld: devlink.o: relocation R_X86_64_32 against symbol `ynl_devlink_family' 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
Extend CFLAGS to support hardening options set by build environment.
Signed-off-by: Jan Stancek <[email protected]>
Acked-by: Jakub Kicinski <[email protected]>
Reviewed-by: Donald Hunter <[email protected]>
Link: https://patch.msgid.link/265b2d5d3a6d4721a161219f081058ed47dc846a.1731399562.git.jstancek@redhat.com
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions