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.
|
|
#!/bin/bash
INCLUDE_INSTALL_DIR="$1"/include LIBRARY_INSTALL_DIR="$1"/lib
mkdir -p $INCLUDE_INSTALL_DIR mkdir -p $LIBRARY_INSTALL_DIR
cp -avr targets/x86_64-linux/lib/libnvrtc* "$LIBRARY_INSTALL_DIR"
# Fix missing rpath, so one shared lib can find the other when it is loaded by BlendLuxCore echo "修复NVRTC rpath"
NVRTC="$LIBRARY_INSTALL_DIR"/libnvrtc.so patchelf --set-rpath ./ "$NVRTC" echo "新rpath的 $NVRTC:" patchelf --print-rpath "$NVRTC"
NVRTC_BUILTINS="$LIBRARY_INSTALL_DIR"/libnvrtc-builtins.so patchelf --set-rpath ./ "$NVRTC_BUILTINS" echo "新rpath的 $NVRTC_BUILTINS:" patchelf --print-rpath "$NVRTC_BUILTINS"
|