From: Jeremy Kerr Date: Thu, 8 Jul 2021 04:46:43 +0000 (+0800) Subject: Build c++ objects with c++ compiler X-Git-Tag: v1.0-rc0~114^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2e02dd440718a73c752b2dbb7cfe022b91794b11;p=users%2Fsagi%2Flibnvme.git Build c++ objects with c++ compiler We should use $(CXX) when building objects from .cc sources Signed-off-by: Jeremy Kerr --- diff --git a/test/Makefile b/test/Makefile index 2df695e0..9327a4d4 100644 --- a/test/Makefile +++ b/test/Makefile @@ -23,7 +23,7 @@ all: $(all_targets) CXXFLAGS ?= -lstdc++ %: %.cc - $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) $(CXXFLAGS) -o $@ $< -lnvme $(LIBS) + $(QUIET_CC)$(CXX) $(CFLAGS) $(LDFLAGS) $(CXXFLAGS) -o $@ $< -lnvme $(LIBS) %: %.c $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lnvme $(LIBS)