Fix compilation with sudo: use CURDIR instead of PWD

This commit is contained in:
Kamil Trzciński
2022-05-06 00:13:32 +02:00
committed by GitHub
parent 9c7f5fed12
commit 950643cff3

View File

@ -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))