diff options
author | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2016-05-13 05:57:03 +0200 |
---|---|---|
committer | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2016-05-13 06:30:52 +0200 |
commit | 8e9c6f5e57ad3998a150ce34e75a2864cd85fcc1 (patch) | |
tree | 0609268b4dcc9678160ea61be26f75877b00392c /Makefile | |
parent | aac1d79e772700115b8b0b19c8fac0894d62fb04 (diff) | |
download | imv-8e9c6f5e57ad3998a150ce34e75a2864cd85fcc1.tar.gz |
Fix build of imv on GNU libc
Previously imv used -std=gnu11 flag which activated GNU "extensions" of C11
standard. This masked a portability issue in imv: strduo(3) should not have
been visible in `src/loader.c` without inclusion of `<string.h>` header. This
have been fixed. To remidy GNU libc's stange choice to hide X/Open interfaces
in C99 code by default _XOPEN_SOURCE macro was also set. (This should have no
effect on most other platforms.)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ MUTE := @ endif CFLAGS ?= -W -Wall -pedantic -Wmissing-prototypes -CFLAGS += -std=c99 $(shell sdl2-config --cflags) +CFLAGS += -std=c99 $(shell sdl2-config --cflags) -D_XOPEN_SOURCE=700 LDFLAGS += $(shell sdl2-config --libs) -lfreeimage -lSDL2_ttf -lfontconfig -lpthread BUILDDIR ?= build |