-
Notifications
You must be signed in to change notification settings - Fork 566
CONFIGURE: added a configure option to add SONAME suffix #11483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
61f87c0
322570f
bae9f33
0350617
514e20b
40f47f7
9b24baf
c38c388
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,6 +72,22 @@ AC_SUBST(EXTRA_VERSION) | |
| AC_SUBST(SCM_VERSION) | ||
| AC_SUBST(SOVERSION) | ||
|
|
||
| UCX_LT_RELEASE= | ||
| ucx_soname_suffix_summary="<disabled>" | ||
| AC_ARG_WITH([soname-suffix], | ||
| AS_HELP_STRING([--with-soname-suffix=SUFFIX], | ||
| [Append SUFFIX to UCX core shared library SONAMEs. Disabled by default. [default=NO]]), | ||
| [], [with_soname_suffix=no]) | ||
| AS_IF([test "x$with_soname_suffix" != xno], | ||
| [AS_IF([test "x$with_soname_suffix" = xyes], | ||
| [AC_MSG_ERROR([--with-soname-suffix requires an explicit suffix value])]) | ||
| AS_IF([printf '%s\n' "$with_soname_suffix" | grep -Eq '^@<:@A-Za-z0-9@:>@@<:@A-Za-z0-9_.-@:>@*$'], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P2] [important] Dotted suffixes break module loading The option accepts dots, but libtool There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the regex |
||
| [], | ||
| [AC_MSG_ERROR([--with-soname-suffix must contain only letters, digits, dots, underscores, and dashes])]) | ||
| UCX_LT_RELEASE="-release $with_soname_suffix" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚨 BLOCKER libtool's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ℹ️ INFO only the four core libs (ucm/ucp/ucs/uct) get |
||
| ucx_soname_suffix_summary="$with_soname_suffix"]) | ||
| AC_SUBST([UCX_LT_RELEASE]) | ||
|
|
||
| AC_PROG_CC | ||
| AC_PROG_CXX | ||
| AC_OPENMP | ||
|
|
@@ -434,6 +450,7 @@ AC_MSG_NOTICE([ Multi-thread: ${mt_enable}]) | |
| AC_MSG_NOTICE([ MPI tests: ${mpi_enable}]) | ||
| AC_MSG_NOTICE([ VFS support: ${vfs_enable}]) | ||
| AC_MSG_NOTICE([ Devel headers: ${enable_devel_headers}]) | ||
| AC_MSG_NOTICE([ SONAME suffix: ${ucx_soname_suffix_summary}]) | ||
| AC_MSG_NOTICE([io_demo CUDA support: ${with_iodemo_cuda}]) | ||
| AC_MSG_NOTICE([ Bindings: <$(echo ${build_bindings}|tr ':' ' ') >]) | ||
| AC_MSG_NOTICE([ UCS modules: <$(echo ${ucs_modules}|tr ':' ' ') >]) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ libucs_la_CPPFLAGS = $(BASE_CPPFLAGS) $(BFD_CPPFLAGS) \ | |
| -DUCX_MODULE_DIR=\"$(moduledir)\" \ | ||
| -DUCX_CONFIG_DIR=\"$(ucx_config_dir)\" | ||
| libucs_la_CFLAGS = $(BASE_CFLAGS) $(LT_CFLAGS) | ||
| libucs_la_LDFLAGS = -ldl $(BFD_LDFLAGS) -version-info $(SOVERSION) | ||
| libucs_la_LDFLAGS = -ldl $(BFD_LDFLAGS) -version-info $(SOVERSION) $(UCX_LT_RELEASE) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P2] [important] libucs_signal is left unsuffixed The new suffix is applied to libucm/libucs/libuct/libucp, but libucs_signal is also an installed versioned UCX shared library. If the goal is avoiding collisions with already-loaded UCX DSOs, leaving this SONAME as |
||
| libucs_ladir = $(includedir)/ucs | ||
| libucs_la_LIBADD = $(LIBM) $(top_builddir)/src/ucm/libucm.la $(BFD_LIBS) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the option is named
--with-soname-suffixbut-releaseactually appends the suffix to the library filename (and hence SONAME), not only to the SONAME. pls clarify the help text or rename (e.g.--with-library-suffix) so users aren't surprised by the renamed.sofile.