message: Added option to statically link ispc with libstdc++ and libgcc
diff: @@ -44,6 +44,10 @@ option(NVPTX_ENABLED "Enable NVPTX support OFF")
  option(ISPC_INCLUDE_EXAMPLES "Generate build targets for the ISPC examples" ON)
  option(ISPC_INCLUDE_TESTS "Generate build targets for the ISPC tests." ON)
  +if (UNIX)
  + option(ISPC_STATIC_STDCXX_LINK "Link statically with libstdc++ and libgcc" OFF)
  +endif()
  +
  # Use solution folders.
  set_property(GLOBAL PROPERTY USE_FOLDERS ON)
  @@ -221,6 +225,10 @@ if (WIN32)
  endif()
  endif()
  +if (ISPC_STATIC_STDCXX_LINK)
  + set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-static-libgcc -static-libstdc++")
  +endif()
  +
  # Link against Clang libraries
  foreach(clangLib ${CLANG_LIBRARY_LIST})
  find_library(${clangLib}Path NAMES ${clangLib} HINTS ${LLVM_LIBRARY_DIRS})
  