You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
637 B

  1. #!/bin/bash
  2. INCLUDE_INSTALL_DIR="$1"/include
  3. LIBRARY_INSTALL_DIR="$1"/lib
  4. mkdir -p $INCLUDE_INSTALL_DIR
  5. mkdir -p $LIBRARY_INSTALL_DIR
  6. cp -avr targets/x86_64-linux/lib/libnvrtc* "$LIBRARY_INSTALL_DIR"
  7. # Fix missing rpath, so one shared lib can find the other when it is loaded by BlendLuxCore
  8. echo "修复NVRTC rpath"
  9. NVRTC="$LIBRARY_INSTALL_DIR"/libnvrtc.so
  10. patchelf --set-rpath ./ "$NVRTC"
  11. echo "新rpath的 $NVRTC:"
  12. patchelf --print-rpath "$NVRTC"
  13. NVRTC_BUILTINS="$LIBRARY_INSTALL_DIR"/libnvrtc-builtins.so
  14. patchelf --set-rpath ./ "$NVRTC_BUILTINS"
  15. echo "新rpath的 $NVRTC_BUILTINS:"
  16. patchelf --print-rpath "$NVRTC_BUILTINS"