build: use a list instead of a string for rpi cflags

Using a string caused all 4 flags to be passed as one argument, causing
the build to fail when trying to include bcm_host.h.
This commit is contained in:
Scott Zeid 2017-12-20 03:25:37 -06:00 committed by Martin Herkt
parent 3412c1a1aa
commit 688768b9bd
1 changed files with 4 additions and 4 deletions

View File

@ -749,10 +749,10 @@ video_output_features = [
'name': '--rpi',
'desc': 'Raspberry Pi support',
'func': compose_checks(
check_cc(cflags="-isystem/opt/vc/include/ "+
"-isystem/opt/vc/include/interface/vcos/pthreads " +
"-isystem/opt/vc/include/interface/vmcs_host/linux " +
"-fgnu89-inline",
check_cc(cflags=["-isystem/opt/vc/include",
"-isystem/opt/vc/include/interface/vcos/pthreads",
"-isystem/opt/vc/include/interface/vmcs_host/linux",
"-fgnu89-inline"],
linkflags="-L/opt/vc/lib",
header_name="bcm_host.h",
lib=['mmal_core', 'mmal_util', 'mmal_vc_client', 'bcm_host']),