build: also use the iconv check on freebsd

This is necessary to make mpv build out of box on FreeBSD.
This commit is contained in:
q66 2016-05-10 22:00:01 +01:00 committed by wm4
parent 1f6e71c7fa
commit bea7675307
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ def check_iconv(ctx, dependency_identifier):
libdliconv = " ".join(ctx.env.LIB_LIBDL + ['iconv'])
libs = ['iconv', libdliconv]
args = {'fragment': iconv_program}
if ctx.env.DEST_OS == 'openbsd':
if ctx.env.DEST_OS == 'openbsd' or ctx.env.DEST_OS == 'freebsd':
args['cflags'] = '-I/usr/local/include'
args['linkflags'] = '-L/usr/local/lib'
checkfn = check_cc(**args)