APM with Bebop 2 sonar

Hi~ julienberaud,
i put libiio.a → ~/bebop2_ardupilot/ardupilot/modules/waf/waflib/
i define HAVE_LIBIIO 1 in RangeFinder.h file. and try to build arducopter,
Build failed

I refer to other articles~
maybe link statically to ardupilot and should work
but i’m not sure how to libiio.a link statically