Commit ce5f49c9 authored by Thibaut ROMAIN's avatar Thibaut ROMAIN
Browse files

BUG: Try setting rpath without patchelf

parent f0958cda
Pipeline #9482 passed with stages
in 20 minutes and 30 seconds
......@@ -80,6 +80,7 @@ build-env-ubuntu:
-DCMAKE_PREFIX_PATH=/opt/otb
-DCMAKE_INSTALL_PREFIX=/opt/otb
-DCMAKE_CXX_FLAGS=-Wl,--as-needed
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON
-DBUILD_TESTING=ON
../
- ninja install
......@@ -90,6 +91,7 @@ build-env-ubuntu:
- cd ../pkg-build
- cmake -GNinja
-DCMAKE_INSTALL_PREFIX=/opt/otb
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON
-DWASP_PACKAGE_LABEL=$CI_COMMIT_SHORT_SHA
../Package
- ninja
......
......@@ -22,9 +22,9 @@ OUT_DIR=$(pwd)
unset LD_LIBRARY_PATH
# look for ELF binary files
BINARY_FILES=$(find "./lib" "./bin" -type f -exec file {} \; | grep -i ': elf ' | cut -f1 -d':')
#BINARY_FILES=$(find "./lib" "./bin" -type f -exec file {} \; | grep -i ': elf ' | cut -f1 -d':')
# run patchelf
for bin_file in $BINARY_FILES; do
#echo "adding rpath to $bin_file"
./pkg/patchelf "--set-rpath" "$OUT_DIR/lib" "$bin_file"
done
#for bin_file in $BINARY_FILES; do
# #echo "adding rpath to $bin_file"
# ./pkg/patchelf "--set-rpath" "$OUT_DIR/lib" "$bin_file"
#done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment