diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-10-28 01:20:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 01:20:24 +0100 |
commit | 215a213d3fbb4f308898f5c631bf871d6c1937af (patch) | |
tree | c1e4c4cfa8c65c2dde023fdf5b02ac906544c23c /configure.ac | |
parent | Merge pull request #7398 from pjdruddy/fix-evpn-show-interface-test (diff) | |
parent | build: add --disable-rpath option in configure (diff) | |
download | frr-215a213d3fbb4f308898f5c631bf871d6c1937af.tar.xz frr-215a213d3fbb4f308898f5c631bf871d6c1937af.zip |
Merge pull request #7366 from eololab/add-disable-rpath-option-in-configure
build: add --disable-rpath option in configure
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index bda9a3450..237552c14 100755 --- a/configure.ac +++ b/configure.ac @@ -451,6 +451,11 @@ fi AC_SUBST([AC_LDFLAGS]) AM_CONDITIONAL([STATIC_BIN], [test "$enable_static_bin" = "yes"]) +AC_ARG_ENABLE([rpath], + [AS_HELP_STRING([--enable-rpath], [set hardcoded rpaths in the executable @<:@default=yes@:>@])], + [], + [enable_rpath=yes]) + dnl $AR and $RANLIB are set by LT_INIT above AC_MSG_CHECKING([whether $AR supports D option]) if $AR crD conftest.a >/dev/null 2>/dev/null; then @@ -2527,6 +2532,14 @@ AS_IF([test "$with_pkg_git_version" = "yes"], [ ## It's already in CVS until texinfo 4.7 is more common. AC_OUTPUT +if test "$enable_rpath" = "yes" ; then + true +else + # See https://old-en.opensuse.org/openSUSE:Packaging_Guidelines#Removing_Rpath + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +fi + echo " FRRouting configuration ------------------------------ |