On Debian kFreeBSD, uname -s says GNU/kFreeBSD. so perhaps you want a second stanza in the Makefile ifeq ($(shell uname -s),GNU/kFreeBSD) LIBS += -lrt endif Jeff