--- CMakeLists.txt.orig	2017-06-08 20:52:16.741243000 +0200
+++ CMakeLists.txt	2017-06-08 20:52:25.747544000 +0200
@@ -329,6 +329,7 @@
 # ******************************
 
 set(CMAKE_REQUIRED_LIBRARIES "-liconv")
+set(CMAKE_REQUIRED_FLAGS "-L/usr/local/lib")
 CHECK_C_SOURCE_COMPILES("#include <iconv.h>
 			#include <stdlib.h>
 			int main(void) { iconv_t cd; cd = iconv_open (\"UTF-8\", \"ISO-8859-1\"); return 0; }" HAVE_LIBICONV)
