message: Check for unwanted dependency to libimf.so
  Also check libospray_module_ispc.so (which implements most functionality
  of OSPRay)
diff: #!/bin/bash
  -## Copyright 2014-2019 Intel Corporation
  +## Copyright 2014-2020 Intel Corporation
  ## SPDX-License-Identifier: Apache-2.0
  #### Helper functions ####
  -# check version of symbols
  function check_symbols
  {
  for sym in `nm $1 | grep $2_`
  @@ -33,6 +32,17 @@ function check_symbols
  done
  }
  +function check_imf
  +{
  +for lib in "$@"
  +do
  + if [ -n "`ldd $lib | fgrep libimf.so`" ]; then
  + echo "Error: dependency to 'libimf.so' found"
  + exit 3
  + fi
  +done
  +}
  +
  #### Set variables for script ####
  ROOT_DIR=$PWD
  @@ -97,6 +107,13 @@ check_symbols libospray.so GLIBC 2 14 0
  check_symbols libospray.so GLIBCXX 3 4 14
  check_symbols libospray.so CXXABI 1 3 5
  +check_symbols libospray_module_ispc.so GLIBC 2 14 0
  +check_symbols libospray_module_ispc.so GLIBCXX 3 4 14
  +check_symbols libospray_module_ispc.so CXXABI 1 3 5
  +
  +check_imf libospray.so libospray_module_ispc.so
  +
  +
  make -j $THREADS package || exit 2
  # change settings for zip mode
  