FreeBSD 10-CURRENT switched to native iconv instead of libiconv library. Our team has a code that uses iconv invocations and we compile it on earlier version of FreeBSD. When we launch the executable on 10-Current it doesn't start with an error:
Shared object "libiconv.so.3" not found, required by our-lib.so
and this happens due to our compilation with -libiconv which is now absent. But we don't want to compile on two different versions of FreeBSD. So is there a way to have only one binary compiled on previous versions of FreeBSD if we use iconv?