Make sure -D_GNU_SOURCE ends up in CFLAGS on Linux

master
C. McEnroe 2020-02-11 19:03:39 -05:00
parent e73328a1fc
commit 90c59ecba4
1 changed files with 8 additions and 0 deletions

8
configure vendored
View File

@ -24,3 +24,11 @@ CFLAGS += $(pkg-config --cflags $libs)
LDFLAGS += $(pkg-config --libs-only-L $libs) LDFLAGS += $(pkg-config --libs-only-L $libs)
LDLIBS = $(pkg-config --libs-only-l $libs) LDLIBS = $(pkg-config --libs-only-l $libs)
EOF EOF
case "$(uname)" in
(Linux)
if ! grep -q -e '-D_GNU_SOURCE' config.mk; then
echo 'CFLAGS += -D_GNU_SOURCE' >> config.mk
fi
;;
esac