mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
build: fix more libtool stupidity for modules
libtool, the radioactive dumpster fire of the GNU ecosystem. A module should not have a SONAME set. SONAMEs are for (versioned) libraries on search paths. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
e536bb107d
commit
0198bd1fbb
|
@ -517,6 +517,15 @@ AC_SUBST([AC_LDFLAGS])
|
|||
AC_SUBST([AC_LDFLAGS_EXEC])
|
||||
AM_CONDITIONAL([STATIC_BIN], [test "$enable_static_bin" = "yes"])
|
||||
|
||||
dnl libtool, the repository of all knowledge related linkers, is too stupid to
|
||||
dnl correctly tell the linker how to build modules.
|
||||
if test -z "$module_cmds"; then
|
||||
module_cmds="`echo \"$archive_cmds\" | sed -e 's%$wl-soname $wl$soname%%'`"
|
||||
fi
|
||||
if test -z "$module_expsym_cmds"; then
|
||||
module_expsym_cmds="`echo \"$archive_expsym_cmds\" | sed -e 's%$wl-soname $wl$soname%%'`"
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE([rpath],
|
||||
[AS_HELP_STRING([--enable-rpath], [set hardcoded rpaths in the executable @<:@default=yes@:>@])],
|
||||
[],
|
||||
|
|
Loading…
Reference in a new issue