1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00

build: add special openbsd case for iconv check

Fixes #2710
This commit is contained in:
Stefano Pigozzi 2016-02-01 18:30:22 +01:00
parent a080432992
commit b7e613f261

View File

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