--- src/CMakeLists.txt.orig	2014-11-01 04:17:02 UTC
+++ src/CMakeLists.txt
@@ -134,6 +134,11 @@ if(HAVE_LIBKONQ)
   set(konsole_LIBS ${konsole_LIBS} ${LIBKONQ_LIBRARY})
 endif()
 
+IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
+    #procstat_getenvv() is in libprocstat
+    list(APPEND konsole_LIBS procstat)
+endif()
+
 ### Konsole Application
 
 kde4_add_ui_files(konsoleprivate_SRCS ColorSchemeEditor.ui
