• Yonghong Song's avatar
    link with bpf-static library for bps · 1ed1c9bd
    Yonghong Song authored
    the issue is reported at #1759.
    
    bps does not need any C++ library functions in bcc.
    It only needs libbpf. So link it with bpf-static instead
    of bcc-static. This avoids pulling in any C++ module/symbolization/usdt
    functions and llvm libraries.
    
    On my local box, the binary size is reduced from ~60MB to 44KB.
    Signed-off-by: default avatarYonghong Song <yhs@fb.com>
    1ed1c9bd
CMakeLists.txt 389 Bytes