From a17f3c0ec568b657fe8cac0f11a5f33fc8892692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 16 Jun 2019 17:37:53 +0200 Subject: make: use -std=c99 I see no good reason to support old standards, when systemd itself requires c99. Let's test with c99 in the CI. Closes #62. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 26f75b8..2d2eedf 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,8 @@ INCLUDE_FLAGS := $(shell pkg-config --cflags libsystemd) VERSION := $(shell $(PYTHON) setup.py --version) TESTFLAGS = -v +CFLAGS = -std=c99 + define buildscript import sys,sysconfig print("build/lib.{}-{}.{}".format(sysconfig.get_platform(), *sys.version_info[:2])) @@ -31,7 +33,7 @@ update-constants: update-constants.py $(INCLUDE_DIR)/systemd/sd-messages.h mv docs/id128.rst{.tmp,} build: - $(PYTHON) setup.py build_ext $(INCLUDE_FLAGS) + CFLAGS=$(CFLAGS) $(PYTHON) setup.py build_ext $(INCLUDE_FLAGS) $(PYTHON) setup.py build install: -- cgit v1.2.1