Make sure -D_GNU_SOURCE ends up in CFLAGS on Linux
parent
e73328a1fc
commit
90c59ecba4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue