mk: add Debian Hurd and kFreeBSD
Author: Vasudev Kamath
@@ -239,6 +239,16 @@ ifeq ($(OS),linux)
AR := ar
AFLAGS := cru
endif
+ifeq ($(OS),gnu)
+ CFLAGS += -fPIC -DGNU
+ LIBS += -ldl
+ LFLAGS += -fPIC
+ SH_LFLAGS += -shared
+ MOD_LFLAGS +=
+ APP_LFLAGS += -rdynamic
+ AR := ar
+ AFLAGS := cru
+endif
ifeq ($(OS),darwin)
CFLAGS += -fPIC -dynamic -DDARWIN
ifneq (,$(findstring Apple, $(CC_LONGVER)))
@@ -282,6 +292,16 @@ ifeq ($(OS),freebsd)
AFLAGS := cru
HAVE_KQUEUE := 1
endif
+ifeq ($(OS),gnu/kfreebsd)
+ CFLAGS += -fPIC -DKFREEBSD -D_GNU_SOURCE
+ LFLAGS += -fPIC
+ SH_LFLAGS += -shared
+ MOD_LFLAGS +=
+ APP_LFLAGS += -rdynamic
+ AR := ar
+ AFLAGS := cru
+ HAVE_KQUEUE := 1
+endif
ifeq ($(OS),dragonfly)
CFLAGS += -fPIC -DDRAGONFLY
LFLAGS += -fPIC
