From 16efbb0b4d2337b3d59e7a61c38b78cd2a3e8c1f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Jan 19 2019 10:26:49 +0000 Subject: RPMMacros: add link to build flags documentation from redhat-rpm-macros --- diff --git a/guidelines/modules/ROOT/pages/RPMMacros.adoc b/guidelines/modules/ROOT/pages/RPMMacros.adoc index d2aa722..961c320 100644 --- a/guidelines/modules/ROOT/pages/RPMMacros.adoc +++ b/guidelines/modules/ROOT/pages/RPMMacros.adoc @@ -1,3 +1,5 @@ +:build-flags: link:https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md[build flags documentation] + RPM provides a rich set of macros to make package maintenance simpler and consistent across packages. For example, it includes a list of default path definitions @@ -117,6 +119,9 @@ on a `x86_64` machine, as defined in the file `/usr/lib/rpm/redhat/macros`. The `+%{optflags}+` macro contains flags that determine `CFLAGS`, `CXXFLAGS`, `FFLAGS`, etc. -- the `+%{__global_cflags}+` macro evaluates to the same string. +The current definitions of these values +can be found in the `redhat-rpm-macros` package, in the {build-flags}. + .... $ rpm --eval "%{optflags}" -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection