From 950643cff3a91765354ea5b2469831ac9d64d650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Fri, 6 May 2022 00:13:32 +0200 Subject: [PATCH] Fix compilation with sudo: use CURDIR instead of PWD --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 36adb8e..b2a3fd9 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ SRC := $(wildcard **/*.c **/*/*.c **/*.cc **/*/*.cc) HEADERS := $(wildcard **/*.h **/*/*.h **/*.hh **/*/*.hh) HTML := $(wildcard html/*.js html/*.html) -CFLAGS := -Werror -Wall -g -I$(PWD) +CFLAGS := -Werror -Wall -g -I$(CURDIR) LDLIBS := -lpthread -lstdc++ ifneq (x,x$(shell which ccache))