jcajka commented on the pull-request: `Expose Go build flags directly to spec files as a macro` that you are following: `` Yes, the patch snippet should be something like: ``` diff --git a/go-rpm-macros.spec b/go-rpm-macros.spec index 83e02d7..8de41a6 100644 --- a/go-rpm-macros.spec +++ b/go-rpm-macros.spec @@ -7,7 +7,9 @@ Version: 3.0.8 %global _docdir_fmt %{name}
# Master definition that will be written to macro files -%global golang_arches %{ix86} x86_64 %{arm} aarch64 ppc64le s390x +%global golang_pie_arches %{ix86} x86_64 %{arm} aarch64 ppc64le s390x +%global golang_nopie_arches %{nil} +%global golang_arches %{golang_pie_arches} %{golang_nopie_arches} %global gccgo_arches %{mips} # Go sources can contain arch-specific files and our macros will package the # correct files for each architecture. Therefore, move gopath to _libdir and @@ -125,6 +127,12 @@ install -m 0755 -vp rpm/*.{prov,deps} \ %ifarch %{golang_arches} install -m 0644 -vp rpm/macros.d/macros.go-compilers-golang \ %{buildroot}%{_rpmconfigdir}/macros.d/macros.go-compiler-golang +%ifarch %{golang_pie_arches} +rm -f %{buildroot}/%{_rpmconfigdir}/macros.d/macros.go-compilers-golang-nopie +%endif +%ifarch %{golang_nopie_arches} +rm -f %{buildroot}/%{_rpmconfigdir}/macros.d/macros.go-compilers-golang-pie +%endif %endif
%ifarch %{gccgo_arches} ``` ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/pull-request/21