| |
@@ -138,3 +138,15 @@
|
| |
-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
|
| |
....
|
| |
|
| |
+ From Fedora 33 and EPEL 7 onwards, the `+%{limit_build}+` macro can be used to
|
| |
+ constrain resource use during the build process. Currently the amount of RAM
|
| |
+ needed per core can be specified (and defaults to 1024 MB otherwise):
|
| |
+
|
| |
+ ....
|
| |
+ $ rpm -E "%make_build %{limit_build -m 2048}"
|
| |
+ /usr/bin/make -O -j16 V=1 VERBOSE=1
|
| |
+
|
| |
+ $ rpm -E "%make_build %{limit_build -m 40960}"
|
| |
+ /usr/bin/make -O -j16 V=1 VERBOSE=1 -j1
|
| |
+ ....
|
| |
+
|
| |
Documentation for the Memory Constraints F35 change:
https://bugzilla.redhat.com/show_bug.cgi?id=1982748
Signed-off-by: Michel Alexandre Salim salimma@fedoraproject.org