2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 00:32:11 +00:00

PGI C++ compiler support: Set DT_SONAME for shared libraries

When creating a shared library, use the -soname option to set the DT_SONAME field to the simple name of the library.  Setting the DT_SONAME field is necessary so that the shared library can be found when it is referenced by another shared library that is then referenced by an executable.
This commit is contained in:
David Olsen
2017-08-02 14:53:59 -07:00
committed by Rene Rivera
parent d691418259
commit 57fb427d0f

View File

@@ -118,7 +118,7 @@ rule link.dll ( targets * : sources * : properties * )
actions link.dll bind LIBRARIES
{
"$(CONFIG_COMMAND)" $(OPTIONS) -shared -L"$(LINKPATH)" -R"$(RPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST)
"$(CONFIG_COMMAND)" $(OPTIONS) -shared -L"$(LINKPATH)" -R"$(RPATH)" -soname $(<[-1]:D=) -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST)
}
actions updated together piecemeal pgi.archive