--- a/src/Makefile
+++ b/src/Makefile
@@ -47,6 +47,11 @@
 # Set correct variables and paths
 #---------------------------------
 OS := $(shell uname)
+# GNU/kFreeBSD uses the linux configuration.
+ifeq ($(OS),GNU/kFreeBSD)
+OS = Linux
+endif
+
 CC = g++
 ifeq ($(OS),GNU/kFreeBSD)
 OS = Linux
