From a53acb787736d89739f9962d95e9060205e9f161 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sun, 25 Jun 2017 16:14:27 +0200 Subject: [PATCH] make: Explicitly set cc compatibility This is apparently necessary to build `lightningd` on debian jessie, which uses an older gcc version. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e595a010f..9b6cd4bb1 100644 --- a/Makefile +++ b/Makefile @@ -209,7 +209,7 @@ WIRE_GEN := tools/generate-wire.py PROGRAMS := $(TEST_PROGRAMS) CWARNFLAGS := -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -CDEBUGFLAGS := -g -fstack-protector +CDEBUGFLAGS := -std=gnu11 -g -fstack-protector CFLAGS := $(CWARNFLAGS) $(CDEBUGFLAGS) -I $(CCANDIR) -I libwally-core/src/secp256k1/include/ -I libwally-core/include/ -I libsodium/src/libsodium/include/ -I . $(FEATURES) $(COVFLAGS) -DSHACHAIN_BITS=48 LDLIBS := -lprotobuf-c -lgmp -lsqlite3 $(COVFLAGS)