diff options
author | C. McEnroe | 2020-02-11 19:03:39 -0500 |
---|---|---|
committer | C. McEnroe | 2020-02-11 19:03:39 -0500 |
commit | 90c59ecba4c1c74d619eb42f9b4f2c4d2acf198d (patch) | |
tree | 63a82b7577ac335dd6202383354ca7b9adb33ac2 /configure | |
parent | e73328a1fc96ffbee52fe9b231b6293439ea1fd6 (diff) |
Make sure -D_GNU_SOURCE ends up in CFLAGS on Linux
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure index d230f4c..94545c4 100755 --- a/configure +++ b/configure @@ -24,3 +24,11 @@ CFLAGS += $(pkg-config --cflags $libs) LDFLAGS += $(pkg-config --libs-only-L $libs) LDLIBS = $(pkg-config --libs-only-l $libs) EOF + +case "$(uname)" in + (Linux) + if ! grep -q -e '-D_GNU_SOURCE' config.mk; then + echo 'CFLAGS += -D_GNU_SOURCE' >> config.mk + fi + ;; +esac |