summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-07 18:49:42 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-07 18:49:42 +0100
commitc59aafb5b3f6a8063e24c53042be178ada155552 (patch)
treeed7e1b2e6b59cae7895fc1a2e649ff7c2ee8c627 /config.mk
parent402db009d2ecd17bbbc1acb6360d6164c9819316 (diff)
Compile with std=c11 and set appropriate glibc feature test macros
might resolve #333 and #348
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index b230e3d..394a13f 100644
--- a/config.mk
+++ b/config.mk
@@ -37,6 +37,9 @@ scalable_icon_dir = ${icon_dir}/scalable/apps
CFLAGS ?= -g -O2
CFLAGS += -Wall -Wextra -pedantic
+# Settings for glibc >= 2.19 - may need to be adjusted for other systems
+CFLAGS += -std=c11 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500
+
ifeq (${curl},1)
CFLAGS += -DHAVE_LIBCURL
LDLIBS += -lcurl