aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-05-24 14:36:07 +0100
committerRichard van der Hoff <richard@matrix.org>2016-05-24 14:41:49 +0100
commit15cb4ec0c0c6b2205e5d3ba0b59c09dd20b4bab5 (patch)
tree9b1c563c32238f60a6a587a437f3f9e988f9dc8c /Makefile
parent2e7800cf650197f4b8998ef8ac24d08daa316a2f (diff)
Build the crypto libs as C99
Some of the crypto libs rely on UINT64_C, which in glibc 2.17 and earlier was not defined for C++ code (see https://sourceware.org/bugzilla/show_bug.cgi?id=15366).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cbdb948..4bc6c3f 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,8 @@ JS_PRE := $(wildcard javascript/*pre.js)
JS_POST := $(wildcard javascript/*post.js)
CPPFLAGS += -Iinclude -Ilib
-CFLAGS += -Wall -Werror -std=c89 -fPIC
+# we rely on <stdint.h>, which was introduced in C99
+CFLAGS += -Wall -Werror -std=c99 -fPIC
CXXFLAGS += -Wall -Werror -std=c++11 -fPIC
LDFLAGS += -Wall -Werror