修改build_execute_package.sh
This commit is contained in:
parent
12047f50f1
commit
909510e933
@ -3,6 +3,7 @@
|
||||
# Color definitions for output
|
||||
GREEN='\033[0;32m'
|
||||
RED='\033[0;31m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
# Logging functions
|
||||
@ -10,6 +11,10 @@ log_info() {
|
||||
echo -e "${GREEN}[INFO]${NC} $1"
|
||||
}
|
||||
|
||||
log_warn() {
|
||||
echo -e "${YELLOW}[WARN]${NC} $1"
|
||||
}
|
||||
|
||||
log_error() {
|
||||
echo -e "${RED}[ERROR]${NC} $1"
|
||||
}
|
||||
@ -74,23 +79,25 @@ else
|
||||
log_warn "libgcc_s.so.1 not found in ${GCC_RUNTIME_LIB_PATH}"
|
||||
fi
|
||||
|
||||
# Modified Boost library copying
|
||||
BOOST_LIB_PATH="/usr/lib64/boost169"
|
||||
BOOST_LIBS=(
|
||||
"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"
|
||||
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"
|
||||
)
|
||||
|
||||
for boost_lib in "${BOOST_LIBS[@]}"; do
|
||||
if [ -f "${BOOST_LIB_PATH}/${boost_lib}" ]; then
|
||||
cp -Lv "${BOOST_LIB_PATH}/${boost_lib}" "${TEMP_DIR}/lib/"
|
||||
log_info "Copied ${boost_lib}"
|
||||
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)"
|
||||
else
|
||||
log_warn "${boost_lib} not found in ${BOOST_LIB_PATH}"
|
||||
log_warn "Boost symlink ${boost_so_name} not found in ${BOOST_LIB_PATH}"
|
||||
fi
|
||||
done
|
||||
# --- END: Copy Libraries ---
|
||||
|
||||
Loading…
Reference in New Issue
Block a user