Skip to content

Commit 9a3d066

Browse files
committed
fix(assembler): restrict library search to local component and shared-libs directories
1 parent fadf661 commit 9a3d066

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

automation-tools/assembler.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,9 +1067,10 @@ process_libraries_manual() {
10671067
log i "Performing manual library processing..." "$logfile"
10681068
mkdir -p "$lib_dir"
10691069

1070-
# Add local component paths first, then system paths (use absolute paths)
1070+
# Search only in local component and shared-libs directories, NOT on the host system
10711071
local component_lib_dir="$(realpath -m "$component/lib" 2>/dev/null)"
1072-
local search_paths=("$lib_dir" "$component_lib_dir" "/app" "/usr/lib" "/usr/lib64" "/lib" "/lib64")
1072+
local shared_libs_dir="$(realpath -m "shared-libs" 2>/dev/null)"
1073+
local search_paths=("$lib_dir" "$component_lib_dir" "$shared_libs_dir")
10731074

10741075
while IFS= read -r line; do
10751076
# Skip empty lines and comments

0 commit comments

Comments
 (0)