diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-12-07 18:49:42 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-12-07 18:49:42 +0100 |
commit | c59aafb5b3f6a8063e24c53042be178ada155552 (patch) | |
tree | ed7e1b2e6b59cae7895fc1a2e649ff7c2ee8c627 /config.mk | |
parent | 402db009d2ecd17bbbc1acb6360d6164c9819316 (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.mk | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |