diff options
author | Jani Välimaa <wally@mageia.org> | 2021-10-17 13:55:59 +0300 |
---|---|---|
committer | Jani Välimaa <wally@mageia.org> | 2021-10-17 13:55:59 +0300 |
commit | 8a55416bb3c936f4d0666f045432a3bdc47ed149 (patch) | |
tree | 7c6d5dd1f030e7902dc1240d589cc2c46ebde8fe | |
parent | 74b15f5daa4bac267f5ac5ef1dd5bd5180bbc8f7 (diff) | |
download | rpm-setup-8a55416bb3c936f4d0666f045432a3bdc47ed149.tar rpm-setup-8a55416bb3c936f4d0666f045432a3bdc47ed149.tar.gz rpm-setup-8a55416bb3c936f4d0666f045432a3bdc47ed149.tar.bz2 rpm-setup-8a55416bb3c936f4d0666f045432a3bdc47ed149.tar.xz rpm-setup-8a55416bb3c936f4d0666f045432a3bdc47ed149.zip |
build.macros: export LT_SYS_LIBRARY_PATH with %set_build_flags
Setting LT_SYS_LIBRARY_PATH prevents libtool from hardcoding %_libdir into the
binaries' RPATH (originally from Fedora).
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | build.macros.in | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,5 @@ - configure.ac: update and modernize with autoconf 2.71 +- build.macros: export LT_SYS_LIBRARY_PATH with %set_build_flags to prevent libtool hardcoding %_libdir into the binaries' RPATH (originally from Fedora) Version 2.61 - 7 September 2021, by Jani Välimaa - brp-mangle-shebang: fix handling of files without newlines (from Fedora) diff --git a/build.macros.in b/build.macros.in index 34466d4..4aa8843 100644 --- a/build.macros.in +++ b/build.macros.in @@ -172,12 +172,14 @@ GCONF_CONFIG_SOURCE=`%{_gconftool_bin} --get-default-source` %{_gconftool_bin} - # variables CFLAGS, CXXFLAGS, FFLAGS, FCFLAGS, LDFLAGS if they have # not been set already. RPM_OPT_FLAGS and RPM_LD_FLAGS have already # been set implicitly at the start of the %%build section. +# LT_SYS_LIBRARY_PATH is used by libtool script. %set_build_flags \ CFLAGS="${CFLAGS:-%{build_cflags}}" ; export CFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%{build_cxxflags}}" ; export CXXFLAGS ; \ FFLAGS="${FFLAGS:-%{build_fflags}}" ; export FFLAGS ; \ FCFLAGS="${FCFLAGS:-%{build_fflags}}" ; export FCFLAGS ; \ - LDFLAGS="${LDFLAGS:-%{build_ldflags}}" ; export LDFLAGS + LDFLAGS="${LDFLAGS:-%{build_ldflags}}" ; export LDFLAGS ; \ + LT_SYS_LIBRARY_PATH="${LT_SYS_LIBRARY_PATH:-%_libdir:}" ; export LT_SYS_LIBRARY_PATH # For compatibility %setup_compile_flags \ |