修改build_execute_package.sh
This commit is contained in:
parent
909510e933
commit
d30c1f0ee6
@ -80,24 +80,24 @@ else
|
||||
fi
|
||||
|
||||
# Modified Boost library copying
|
||||
BOOST_LIB_PATH="/usr/lib64/boost169"
|
||||
BOOST_SO_NAMES=(
|
||||
"libboost_system.so"
|
||||
"libboost_filesystem.so"
|
||||
"libboost_thread.so"
|
||||
"libboost_chrono.so"
|
||||
"libboost_date_time.so"
|
||||
"libboost_atomic.so"
|
||||
"libboost_regex.so"
|
||||
ACTUAL_BOOST_LIB_PATH="/usr/lib64" # Actual .so.1.69.0 files are in /usr/lib64
|
||||
BOOST_VERSIONED_FILES=(
|
||||
"libboost_system.so.1.69.0"
|
||||
"libboost_filesystem.so.1.69.0"
|
||||
"libboost_thread.so.1.69.0"
|
||||
"libboost_chrono.so.1.69.0"
|
||||
"libboost_date_time.so.1.69.0"
|
||||
"libboost_atomic.so.1.69.0"
|
||||
"libboost_regex.so.1.69.0"
|
||||
)
|
||||
|
||||
log_info "Attempting to copy Boost libraries from ${BOOST_LIB_PATH} by resolving symlinks..."
|
||||
for boost_so_name in "${BOOST_SO_NAMES[@]}"; do
|
||||
if [ -e "${BOOST_LIB_PATH}/${boost_so_name}" ]; then
|
||||
cp -Lv "${BOOST_LIB_PATH}/${boost_so_name}" "${TEMP_DIR}/lib/"
|
||||
log_info "Copied target of ${boost_so_name} (expected to be *.so.1.69.0)"
|
||||
log_info "Attempting to copy Boost libraries from ${ACTUAL_BOOST_LIB_PATH}..."
|
||||
for boost_file in "${BOOST_VERSIONED_FILES[@]}"; do
|
||||
if [ -f "${ACTUAL_BOOST_LIB_PATH}/${boost_file}" ]; then
|
||||
cp -v "${ACTUAL_BOOST_LIB_PATH}/${boost_file}" "${TEMP_DIR}/lib/"
|
||||
log_info "Copied ${boost_file}"
|
||||
else
|
||||
log_warn "Boost symlink ${boost_so_name} not found in ${BOOST_LIB_PATH}"
|
||||
log_warn "Boost library ${boost_file} not found in ${ACTUAL_BOOST_LIB_PATH}"
|
||||
fi
|
||||
done
|
||||
# --- END: Copy Libraries ---
|
||||
|
||||
Loading…
Reference in New Issue
Block a user