[Fuego] [PATCH 2/2] boost: add more library search path

Bird, Timothy Tim.Bird at sony.com
Mon Nov 13 23:20:51 UTC 2017



> -----Original Message-----
> From: fuego-bounces at lists.linuxfoundation.org [mailto:fuego-
> bounces at lists.linuxfoundation.org] On Behalf Of Liu Wenlong
> Sent: Monday, November 13, 2017 2:34 AM
> To: fuego at lists.linuxfoundation.org
> Subject: [Fuego] [PATCH 2/2] boost: add more library search path
> 
> what has been added.
> 1. add platform/arch related search path;
> 2. to use different variable name for different library.
> 
> Signed-off-by: Liu Wenlong <liuwl.fnst at cn.fujitsu.com>
> ---
>  engine/tests/Functional.boost/fuego_test.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/engine/tests/Functional.boost/fuego_test.sh
> b/engine/tests/Functional.boost/fuego_test.sh
> index 9ef2b64..2f0d91c 100755
> --- a/engine/tests/Functional.boost/fuego_test.sh
> +++ b/engine/tests/Functional.boost/fuego_test.sh
> @@ -7,8 +7,8 @@ BOOST_LIBRARY=('libboost_atomic.so'
> 'libboost_chrono.so' 'libboost_date_time.so'
> 
>  function test_pre_check {
>      for lib in ${BOOST_LIBRARY[@]};do
> -        is_on_target $lib TARGET_BOOST_LIB /lib:/usr/lib:/usr/local/lib
> -        assert_define TARGET_BOOST_LIB
> +        is_on_target $lib `echo ${lib%.*} | tr 'a-z' 'A-Z'`
> /lib:/usr/lib:/usr/local/lib:/usr/lib/$ARCH-linux-*/:/usr/lib/$PLATFORM-linux-
> */
> +        assert_define `echo ${lib%.*} | tr 'a-z' 'A-Z'`

Based on the conventions I just sent out, maybe something like this
instead (this is not tested code):

BOOST_LIBRARIES=('libboost_atomic.so', 'libboost_chrono.so', 'libboost_date_time.so')
for lib in ${BOOST_LIBRARIES[@]}; do
      LIB_VAR_NAME="TARGET_LIB_$(echo ${lib%.*} | tr 'a-z' 'A-Z' | cut -b4-)"
      is_on_target $lib $LIB_VAR_NAME /lib:/usr/lib:/usr/local/lib:/usr/lib/$ARCH-linux-*/:/usr/lib/$PLATFORM-linux-*/
      assert_define $LIB_VAR_NAME
done

 -- Tim


More information about the Fuego mailing list