Skip to content

Commit

Permalink
SWDEV-310152 - Added RUNPATH to flang shared library (#76)
Browse files Browse the repository at this point in the history
* SWDEV-310152 - Added RUNPATH to flang shared library

Added RUNPATH to libflang.so : $ORIGIN:$ORIGIN/../../

* RUNPATH updated to /../../lib

* Use build arguments to set RUNAPTH linker flags rather than using hard coded values

Change-Id: I3f25e62d6708ec29f350941242c67975ea8d1a89
  • Loading branch information
raramakr authored and estewart08 committed Sep 20, 2023
1 parent e9adde2 commit cc24146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/flang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SET(CMAKE_ASM_FLAGS "${CFLAGS} ${ASM_OPTIONS}" )
if(${SANITIZER})
set(CMAKE_SHARED_LINKER_FLAGS " -Wl,--enable-new-dtags -fuse-ld=lld -fsanitize=address -shared-libasan -g -Wl,--build-id=sha1 -no-flang-libs ")
else()
set(CMAKE_SHARED_LINKER_FLAGS " -no-flang-libs ")
set(CMAKE_SHARED_LINKER_FLAGS " -no-flang-libs ${OPENMP_EXTRAS_SHARED_LINKER_FLAGS}")
endif()

# We are using Fortran driver to build this library with fresh compiler
Expand Down

0 comments on commit cc24146

Please sign in to comment.