diff --git a/common.mk b/common.mk index 7944196c..485038b4 100644 --- a/common.mk +++ b/common.mk @@ -50,7 +50,7 @@ ifeq ($(UNAME),FreeBSD) LDFLAGS += -liconv endif -ifeq ($(UNAME),Linux) +ifneq (,$(filter Linux GNU GNU/%, $(UNAME))) CFLAGS += -D_GNU_SOURCE endif