Fix openbsd compile build errors due to dependency on libiconv
authorJose Rubio <joserubiovidales@gmail.com>
Fri, 27 Sep 2019 19:54:06 +0000 (21:54 +0200)
committerJose Rubio <joserubiovidales@gmail.com>
Fri, 27 Sep 2019 19:54:06 +0000 (21:54 +0200)
The path to libiconv is selected in config/cf/OpenBSD.cf reusing the
same trick  as FreeBSD does.

cde/config/cf/OpenBSD.cf

index a3b12533e687cdaa6f2ecc4c107c29b4e2052d10..212f5e68a602c2093cb82d3bfde2b1c0e8973d08 100644 (file)
@@ -1072,6 +1072,7 @@ CXXDEPENDINCLUDE != CcCmd -v -x c++ /dev/null -fsyntax-only \
 #define ArchitectureDefines    -DOPENBSD_ARCHITECTURE
 
 #define BuildLibPathVar        LD_LIBRARY_PATH
+ICONVSYSLIB != if test -f /usr/local/include/iconv.h; then echo -liconv; else echo; fi
 
 #ifndef KornShell
 #define KornShell               /usr/local/bin/ksh93