From 24505ee9cbf8cd3666bc989fc03316cbcb873c71 Mon Sep 17 00:00:00 2001 From: Nicola Smaniotto Date: Mon, 10 Jan 2022 12:37:10 +0100 Subject: [PATCH] use the CXX variable The C++ compiler is stored in $CXX, while $CC is for the C compiler. The Makefile should not overwrite $CC to set an arbitrary C++ compiler, and instead directly use $CXX. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e19be55..3f1d369 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,10 @@ -CC = g++ PKG_CONFIG = pkg-config BASE_CFLAGS=-std=c++11 -Wall -Wextra -O3 `$(PKG_CONFIG) --cflags Qt5DBus mpv` BASE_LDFLAGS=`$(PKG_CONFIG) --libs Qt5DBus` libunity.so: libunity.c - $(CC) libunity.c -o libunity.so $(BASE_CFLAGS) $(CFLAGS) $(BASE_LDFLAGS) $(LDFLAGS) -shared -fPIC + $(CXX) libunity.c -o libunity.so $(BASE_CFLAGS) $(CFLAGS) $(BASE_LDFLAGS) $(LDFLAGS) -shared -fPIC install: libunity.so mkdir -p $(HOME)/.config/mpv/scripts