Remove macro flags that aren't supported in el8 rpm
Resolves: RHEL-12964
This commit is contained in:
parent
170b79df1d
commit
ae9f9c1d0b
@ -34,20 +34,12 @@
|
|||||||
# -Copt-level: set optimization level (default: highest optimization level)
|
# -Copt-level: set optimization level (default: highest optimization level)
|
||||||
# -Cdebuginfo: set debuginfo verbosity (default: full debug information)
|
# -Cdebuginfo: set debuginfo verbosity (default: full debug information)
|
||||||
# -Ccodegen-units: set number of parallel code generation units (default: 1)
|
# -Ccodegen-units: set number of parallel code generation units (default: 1)
|
||||||
# -Cforce-frame-pointers: force inclusion of frame pointers (default: enabled
|
|
||||||
# on x86_64 and aarch64 on Fedora 37+)
|
|
||||||
#
|
|
||||||
# Additionally, some linker flags are set which correspond to the default
|
|
||||||
# Fedora compiler flags for hardening and for embedding package versions into
|
|
||||||
# compiled binaries.
|
|
||||||
#
|
#
|
||||||
# ref. https://doc.rust-lang.org/rustc/codegen-options/index.html
|
# ref. https://doc.rust-lang.org/rustc/codegen-options/index.html
|
||||||
%build_rustflags %{shrink:
|
%build_rustflags %{shrink:
|
||||||
-Copt-level=%rustflags_opt_level
|
-Copt-level=%rustflags_opt_level
|
||||||
-Cdebuginfo=%rustflags_debuginfo
|
-Cdebuginfo=%rustflags_debuginfo
|
||||||
-Ccodegen-units=%rustflags_codegen_units
|
-Ccodegen-units=%rustflags_codegen_units
|
||||||
%{expr:0%{?_include_frame_pointers} && ("%{_arch}" != "ppc64le" && "%{_arch}" != "s390x" && "%{_arch}" != "i386") ? "-Cforce-frame-pointers=yes" : ""}
|
|
||||||
%[0%{?_package_note_status} ? "-Clink-arg=%_package_note_flags" : ""]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# __cargo_common_opts: common command line flags for cargo
|
# __cargo_common_opts: common command line flags for cargo
|
||||||
|
Loading…
Reference in New Issue
Block a user