File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
tools/testing/selftests/bpf Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -202,11 +202,9 @@ ifeq ($(feature-llvm),1)
202202 LLVM_CONFIG_LIB_COMPONENTS := mcdisassembler all-targets
203203 # both llvm-config and lib.mk add -D_GNU_SOURCE, which ends up as conflict
204204 LLVM_CFLAGS += $(filter-out -D_GNU_SOURCE,$(shell $(LLVM_CONFIG ) --cflags) )
205- LLVM_LDLIBS += $(shell $(LLVM_CONFIG ) --libs $(LLVM_CONFIG_LIB_COMPONENTS ) )
206- ifeq ($(shell $(LLVM_CONFIG) --shared-mode),static)
207- LLVM_LDLIBS += $(shell $(LLVM_CONFIG ) --system-libs $(LLVM_CONFIG_LIB_COMPONENTS ) )
208- LLVM_LDLIBS += -lstdc++
209- endif
205+ LLVM_LDLIBS += $(shell $(LLVM_CONFIG ) --link-static --libs $(LLVM_CONFIG_LIB_COMPONENTS ) )
206+ LLVM_LDLIBS += $(shell $(LLVM_CONFIG ) --link-static --system-libs $(LLVM_CONFIG_LIB_COMPONENTS ) )
207+ LLVM_LDLIBS += -lstdc++
210208 LLVM_LDFLAGS += $(shell $(LLVM_CONFIG ) --ldflags)
211209endif
212210
You can’t perform that action at this time.
0 commit comments