> Hello, Thanks for the patch review! >> + #:make-flags (list "CC=gcc" >> + (string-append "PREFIX=" %output) >> + (string-append "RPM_BUILD_ROOT=" %output)) > > Hard-coding CC variable this way prevents cross-compilation. Oops, I overlooked that. > If you run: > > --8<---------------cut here---------------start------------->8--- > ./pre-inst-env guix build maradns --target=aarch64-linux-gnu --target=aarch64-linux-gnu > --8<---------------cut here---------------end--------------->8--- > > you will obtain a native version of the binaries. Something like that > would work better: > > --8<---------------cut here---------------start------------->8--- > (string-append "CC=" (if target > (string-append (assoc-ref %build-inputs "cross-gcc") > "/bin/" target "-gcc") > "gcc")) > --8<---------------cut here---------------end--------------->8--- Sure, I'll fix this. Any other changes? > As this is a recurrent problem we may need to put this snippet into a > gnu-build-system function? I think that's a good idea. The build phase of the gnu-build-system should include this snippet.