| |
@@ -15,9 +15,9 @@
|
| |
`--prefix=/usr`) to adjust the paths to the packaging defaults.
|
| |
|
| |
As a side effect, this will set the environment variables `CFLAGS`,
|
| |
- `CXXFLAGS`, `FFLAGS`, `FCFLAGS`, and `LDFLAGS`, so they can be used by
|
| |
- makefiles and other build tools. (However, existing values for this
|
| |
- variables are not overwritten.)
|
| |
+ `CXXFLAGS`, `FFLAGS`, `FCFLAGS`, `LDFLAGS` and `LT_SYS_LIBRARY_PATH`,
|
| |
+ so they can be used by makefiles and other build tools. (However,
|
| |
+ existing values for these variables are not overwritten.)
|
| |
|
| |
If your package does not use autoconf, you can still set the same
|
| |
environment variables using
|
| |
@@ -43,6 +43,9 @@
|
| |
driver. At the start of the `%build` section, the environment
|
| |
variable `RPM_LD_FLAGS` is set to this value.
|
| |
|
| |
+ The variable `LT_SYS_LIBRARY_PATH` is defined here to prevent the `libtool`
|
| |
+ script (v2.4.6+) from hardcoding %_libdir into the binaries' RPATH.
|
| |
+
|
| |
These RPM macros do not alter shell environment variables.
|
| |
|
| |
For some other build tools separate mechanisms exist:
|
| |
The libtool script/macros (new enough, v2.4.6+) honor this
variable in cases where it isn't possible to detect the
system-wide default library path. It is e.g. able to parse
/etc/ld.so.* configuration, but there's no info about /usr/lib64.
So to not force everybody to do:
%configure LT_SYS_LIBRARY_PATH=...
... rather set this system-wide. Note that this is low-risk
change; older libtool doesn't use this variable, and really no
other tool should.