Skip to content

Commit

Permalink
Add -fPIE flag
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy committed Sep 23, 2023
1 parent b66020f commit 70c0910
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backends/ebpf/build_libbpf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def main() -> int:
mk_cmd += "BUILD_STATIC_ONLY=y "
mk_cmd += f"OBJDIR={libbpf_build_dir} "
mk_cmd += f"DESTDIR={libbpf_target_dir} "
mk_cmd += "SHARED_CFLAGS=\"-fPIE\" "
result = testutils.exec_process(args=mk_cmd)
if result.returncode != testutils.SUCCESS:
testutils.log.error("Could not build libbpf")
Expand Down

0 comments on commit 70c0910

Please sign in to comment.