Skip to content

Commit ae08cbf

Browse files
committed
Makefile: remove unneeded -I/usr/include from flags
gcc warns about an include directive that shadows the system include directory at high verbosity levels. Let's filter it out (pkgconfig implements that) to reduce noise and also to make the command line shorter.
1 parent 73807b4 commit ae08cbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ SED = sed
33
SPHINX_BUILD = sphinx-build
44
ETAGS = etags
55
INCLUDE_DIR := $(shell pkg-config --variable=includedir libsystemd)
6+
INCLUDE_FLAGS := $(shell pkg-config --cflags libsystemd)
67
VERSION := $(shell $(PYTHON) setup.py --version)
78
TESTFLAGS = -v
89

@@ -31,7 +32,7 @@ update-constants: $(INCLUDE_DIR)/systemd/sd-messages.h
3132
mv docs/id128.rst{.tmp,}
3233

3334
build:
34-
$(PYTHON) setup.py build_ext $(if $(INCLUDE_DIR),-I$(INCLUDE_DIR))
35+
$(PYTHON) setup.py build_ext $(INCLUDE_FLAGS)
3536
$(PYTHON) setup.py build
3637

3738
install:

0 commit comments

Comments
 (0)