libbpf-bootstrap icon indicating copy to clipboard operation
libbpf-bootstrap copied to clipboard

static build in example CMakelist

Open chentao-kernel opened this issue 1 year ago • 2 comments

Hi, anakryiko, can we support static build in example CMakelist, i think others will also meet this glibc version problem image

set(CMAKE_EXE_LINKER_FLAGS "-static")

it seems add static flag can fix it, so is it meaningful?

chentao-kernel avatar Nov 13 '24 02:11 chentao-kernel

If someone implements and tests this, then sure, I don't see why not. Ideally we also have CI test for this mode.

anakryiko avatar Nov 13 '24 20:11 anakryiko

If someone implements and tests this, then sure, I don't see why not. Ideally we also have CI test for this mode.

ok, i will do it.

chentao-kernel avatar Nov 14 '24 11:11 chentao-kernel