Re: [PATCH bpf] selftests/bpf: bring back c++ include/link test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/02, Andrii Nakryiko wrote:
> On Mon, Dec 2, 2019 at 12:28 PM Stanislav Fomichev <sdf@xxxxxxxxxx> wrote:
> > +# Make sure we are able to include and link libbpf against c++.
> > +$(OUTPUT)/test_cpp: test_cpp.cpp $(BPFOBJ)
> > +       $(CXX) $(CFLAGS) $^ -lelf -o $@
> 
> let's use $(LDLIBS) instead here
Sure, I'll send a v2 with $(LDLIBS); it might be worth doing for
consistency.

Just curious: any particular reason you want to do it?
(looking it tools/build/features, I don't see any possible -lelf
cross-dependency)



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux