Skip to content

Commit

Permalink
SWDEV-433541 add 3rd level to RPATH after fileReorg
Browse files Browse the repository at this point in the history
Change-Id: I385c4a6a3941110a90a0223399fd2981d43c46d9
  • Loading branch information
ronlieb committed Nov 23, 2023
1 parent 3f0f0af commit fefa6a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/aomp_common_vars
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ AOMP_ORIGIN_RPATH="-DCMAKE_SHARED_LINKER_FLAGS='-Wl,--disable-new-dtags' $AOMP_O
# Libraries and Binaries need different RUNPATH as below
if [ "$AOMP_BUILD_SANITIZER" == 1 ]; then
# ASAN RUNPATH
OPENMP_EXTRAS_LIB_RPATH='$ORIGIN:$ORIGIN/../../../lib/asan:$ORIGIN/../../../lib'
OPENMP_EXTRAS_EXE_RPATH='$ORIGIN/../lib/asan:$ORIGIN/../lib:$ORIGIN/../../lib/asan:$ORIGIN/../../lib'
OPENMP_EXTRAS_LIB_RPATH='$ORIGIN:$ORIGIN/../../../lib/asan:$ORIGIN/../../../lib:$ORIGIN/../../../../lib'
OPENMP_EXTRAS_EXE_RPATH='$ORIGIN/../lib/asan:$ORIGIN/../lib:$ORIGIN/../../lib/asan:$ORIGIN/../../lib:$ORIGIN/../../../lib'
else
# RUNPATH for Libraries: \$ORIGIN:\$ORIGIN/../../lib
# RUNPATH for Binaries: \$ORIGIN/../lib:\$ORIGIN/../../lib
OPENMP_EXTRAS_LIB_RPATH='$ORIGIN:$ORIGIN/../../lib'
OPENMP_EXTRAS_EXE_RPATH='$ORIGIN/../lib:$ORIGIN/../../lib'
OPENMP_EXTRAS_LIB_RPATH='$ORIGIN:$ORIGIN/../lib:$ORIGIN/../../lib:$ORIGIN/../../../lib'
OPENMP_EXTRAS_EXE_RPATH='$ORIGIN/../lib:$ORIGIN/../../lib:$ORIGIN/../../../lib'
fi

OPENMP_EXTRAS_SHARED_LINKER_FLAGS="-Wl,--enable-new-dtags,--build-id=sha1,--rpath,$OPENMP_EXTRAS_LIB_RPATH"
Expand Down

0 comments on commit fefa6a0

Please sign in to comment.