From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:59264) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRH0l-0002p0-73 for guix-patches@gnu.org; Wed, 22 Apr 2020 11:10:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRH0k-000160-Ls for guix-patches@gnu.org; Wed, 22 Apr 2020 11:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRH0k-00013q-88 for guix-patches@gnu.org; Wed, 22 Apr 2020 11:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jRH0k-00017S-2l for guix-patches@gnu.org; Wed, 22 Apr 2020 11:10:02 -0400 Subject: [bug#40767] [PATCH] gnu: Add maradns. Resent-Message-ID: Date: Wed, 22 Apr 2020 18:09:04 +0300 From: Efraim Flashner Message-ID: <20200422150904.GN10788@E5400> References: <20200422132922.9539-1-arunisaac@systemreboot.net> <87lfmnock3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kOdvwer/5gjFgNo6" Content-Disposition: inline In-Reply-To: <87lfmnock3.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Mathieu Othacehe Cc: Arun Isaac , 40767@debbugs.gnu.org --kOdvwer/5gjFgNo6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 22, 2020 at 03:49:32PM +0200, Mathieu Othacehe wrote: >=20 > Hello, >=20 > > + #:make-flags (list "CC=3Dgcc" > > + (string-append "PREFIX=3D" %output) > > + (string-append "RPM_BUILD_ROOT=3D" %output)) >=20 > Hard-coding CC variable this way prevents cross-compilation. If you run: >=20 > --8<---------------cut here---------------start------------->8--- > ./pre-inst-env guix build maradns --target=3Daarch64-linux-gnu --target= =3Daarch64-linux-gnu > --8<---------------cut here---------------end--------------->8--- >=20 > you will obtain a native version of the binaries. Something like that > would work better: >=20 > --8<---------------cut here---------------start------------->8--- > (string-append "CC=3D" (if target > (string-append (assoc-ref %build-inputs "cross-= gcc") > "/bin/" target "-gcc") > "gcc")) > --8<---------------cut here---------------end--------------->8--- >=20 > As this is a recurrent problem we may need to put this snippet into a > gnu-build-system function? >=20 > Thanks, >=20 > Mathieu would (which "gcc") work when cross compiling? --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --kOdvwer/5gjFgNo6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl6gXg0ACgkQQarn3Mo9 g1FoVxAAvs2eK0yKJ5KryGBCY11/3DuKsdTVDpW8kTZV4TTdCOHdEKGIkIOv6Mnc g2ob8efSC+2hfguYzXUawDwbH1D9k8EpXTuSJ+y6mYhSfcsZcG3ssfxekSTZmupU m765ANgc51YdfDMwUV525vbrRd0IC8CcQwoOILyuCfb5+2lByTEmSNl/SoV+tduu auc6EqCsqIYpD0FgsGTbYiyLaBcISxuP0N7h+4bCf3v6kRHJKCXM1GFzjwbpgWBG rGEboJVQ8XlFEfqy/pqNXDf05Iv5pA8f3kSDLXXwbqyKr48LCnxcM6oNlqOPgMJ2 XTjkY0ybufEwTyQFkK99SWMK96PlGxH6EbLzPMbtNNCw+gTRzKGhei0yaIck/eXF ACmr4vdUPuEX4tEBP/Zq6QWL9yoG+bzEkGnlT9zCi+JlKmUP582YuAm+gD7fIwtt GLLXx9gvds2vDyfZm7VE1GqRv0T7bW7ETWHBxs15JBeG8FM7aNfrwl78ah8yiafF SsQv7EqR83TTRRL+PuodT/Zng99MtFTBSE4nJNO7bgPPqQgSdl32dEW+SLkQQshp YdSUH5wnrOwap+fi8Zh3+bWxbtfpj5j+4gvDIsgcwm6R67KWzkKzC+aUmjg/uEoq 7opU/NugnmZ+5G5ZetNQXRjs0YulsF6SJ6vsmi/DDRsOzE8G0cY= =NseI -----END PGP SIGNATURE----- --kOdvwer/5gjFgNo6--